Not a git repository (or any of the parent directories): .git
# git remote add origin git@github.com:molewanwan/demo.gitfatal: Not a git repository (or any of the parent directories): .git
处理方法
# git init
Initialized empty Git repository in /home/molewanwan/.git/
再次git remote add
# git remote add origin git@github.com:molewanwan/demo.git
# ls -la
total 20
drwx------. 3 molewanwan molewanwan 70 Nov 27 07:55 .
drwxr-xr-x. 104 root root 4096 Nov 27 07:43 ..
-rw-r--r--. 1 molewanwan molewanwan 18 Jul82015 .bash_logout
-rw-r--r--. 1 molewanwan molewanwan193 Jul82015 .bash_profile
-rw-r--r--. 1 molewanwan molewanwan231 Jul82015 .bashrc
drwxr-xr-x. 7 root root 4096 Nov 27 07:56 .git
# ls -la
total 20
drwxr-xr-x. 7 root root 4096 Nov 27 07:56 .
drwx------. 3 molewanwan molewanwan 70 Nov 27 07:55 ..
drwxr-xr-x. 2 root root 6 Nov 27 07:55 branches
-rw-r--r--. 1 root root 197 Nov 27 07:56 config
-rw-r--r--. 1 root root 73 Nov 27 07:55 description
-rw-r--r--. 1 root root 23 Nov 27 07:55 HEAD
drwxr-xr-x. 2 root root 4096 Nov 27 07:55 hooks
drwxr-xr-x. 2 root root 20 Nov 27 07:55 info
drwxr-xr-x. 4 root root 28 Nov 27 07:55 objects
drwxr-xr-x. 4 root root 29 Nov 27 07:55 refs
页:
[1]