Git

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jack/team.git
git push -u origin master

查看分支:git branch
创建分支:git branch <name>
切换分支:git checkout <name>
创建+切换分支:git checkout -b <name>
合并某分支到当前分支:git merge <name>
删除分支:git branch -d <name>

git merge --no-ff -m "merge with no-ff" dev

 

git push --set-upstream origin dev

posted @ 2018-05-25 14:54  龙虾777  阅读(106)  评论(0编辑  收藏  举报