git使用记录

git的使用记录

1.常用命令

1.1 git clone

1
git clone https://code.jd.com/jd_49526c7409da9/jae_liuhongbin_2.git

1.2 git status

1
git status
  • 修改后

1.3 git add

1
git add .

1.4 git commit

1
git commit -m 'new'

1.5 git push

1
git push

1.6 git rm

1
git rm index.txt

1.7 git commit

1
git commit -m 'remove'

1.8 git push

1
git push

1.9 hexo 常用git

1
2
3
4
5
6
7
git init
git checkout -b hexo
vi .gitignore
git add .
git commit -m 'first'
git push origin :hexo
git push origin hexo

关于作者

转载请注明出处:
https://crazylook.github.io/2014/09/09/hexo/git-notes1/