童童爸的博客

爱老婆,爱童童,爱编程

Git

永久链接

  • (use “git rm –cached …” to unstage)

  • 目录有东西,如何clone?

1
2
3
4
5
6
cd 
git init 
git remote add origin remote_machine:~brentg/my_setup.git 
git fetch 
git branch master origin/master 
git checkout master 

git pull http master 后,git log -p -n1 显示不出区别

git log –oneline 看commit号, git diff commit号

git ls-files

Comments