git bundle 명령을 사용하여 로컬 git 리포지토리를 내보내려고했습니다. 그러나 모든 것이 수출되는 것은 아닙니다. 로컬 git 저장소를 올바르게 내보내려면 어떻게해야합니까? 번들을 번들 해제해서는 안되지만 대신 복제해야한다고 읽었습니다.git 번들을 사용하여 로컬 git 리포지토리를 내보낼 수 없습니다.
PS C:\dev\repo\local-repo> git status
On branch dev
Your branch is up-to-date with 'origin/dev'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: application/config/config.php
modified: application/controllers/Account.php
modified: application/controllers/Hook.php
modified: application/controllers/Test.php
modified: application/models/User.php
modified: application/views/backend/account/main.php
modified: application/views/backend/account/nav.php
modified: application/views/backend/referrals_table.php
Untracked files:
(use "git add <file>..." to include in what will be committed)
application/models/Permission.php
application/models/Referral.php
application/models/Resellercredit.php
application/models/Resellerpackage.php
application/models/Usergroup.php
application/views/backend/account/reseller_center.php
no changes added to commit (use "git add" and/or "git commit -a")
PS C:\dev\repo\local-repo> git branch
* dev
master
PS C:\dev\repo\local-repo> git stash list
[email protected]{0}: On dev: linux migration stash
PS C:\dev\repo\local-repo> git bundle create ..\migrate.git --all
Counting objects: 4249, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1546/1546), done.
Writing objects: 100% (4249/4249), 10.17 MiB | 0 bytes/s, done.
Total 4249 (delta 2709), reused 4186 (delta 2680)
PS C:\dev\repo> git clone migrate.git remote-repo
Cloning into 'remote-repo'...
Receiving objects: 100% (4249/4249), 10.17 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2709/2709), done.
PS C:\dev\repo> cd .\remote-repo\
PS C:\dev\repo\remote-repo> git branch
* dev
PS C:\dev\repo\remote-repo> git stash
No local changes to save
PS C:\dev\repo\remote-repo> git stash list
PS C:\dev\repo\remote-repo>
내 커밋되지 않은 파일이 포함되어 있기 때문에 정말 숨겨져 있어야합니다. 내 전체 로컬 저장소를 내보내는 다른 방법이 있습니까 (unstaged 변경 포함)? 전체 컴퓨터의 폴더를 다른 컴퓨터에 복사하려고 시도했으나 다른 운영체제를 사용하고 있습니다.하지만 git status를 실행하면 더 많은 파일이 "unstaged changes"아래에 표시됩니다.