0
當我創建一個新的回購,然後克隆它,並嘗試添加一個文件,然後我的系統說沒有回購。爲什麼?爲什麼將新文件添加到新回購很困難?
$ git clone https://github.com/montao/oslab.git
Cloning into 'oslab'...
Username for 'https://github.com': montao
Password for 'https://[email protected]':
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
Checking connectivity... done.
[email protected]:~/Desktop/kth/os/smallshell$ ls
a.out cpipe.c.orig digenv.c.orig omdirigering.c.orig pipe.c.orig types.c~
backup.c digenv digenv.dat oslab RunSafe types.c.orig
cpipe.c digenv.c omdirigering.c pipe.c RunSafe.c
cpipe.c~ digenv.c~ omdirigering.c~ pipe.c~ types.c
[email protected]:~/Desktop/kth/os/smallshell$ git add digenv.c
fatal: Not a git repository (or any of the parent directories): .git
[email protected]:~/Desktop/kth/os/smallshell$
你確定你在正確的子目錄嗎?克隆後,你的git倉庫應該有一個子目錄「oslab」。 – 2015-04-05 20:47:46
@DirkTrilsbeek好吧有一個。我沒有看到它。 – 2015-04-05 20:48:50