Git常用操作

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11731882.html

 

 1 git clone ${repo_url}
 2 
 3 git checkout -b dev origin/dev
 4 
 5 git add *.java
 6 
 7 git commit
 8 git commit --amend
 9 
10 git pull --rebase
11 
12 git push origin HEAD:refs/for/dev
13 
14 git cherry-pick 65a2602e44c8f5900dfc931c5b8cc3fd82d53b65
15 
16 git merge --no-ff dev

 

posted @ 2019-10-24 14:14  李白与酒  阅读(102)  评论(0编辑  收藏  举报