Git常用命令
1、拷贝项目
git clone XXX.git
2、拷贝项目,指定分支
git clone -b [分支名称] XXX.git
3、拉取更新当前分支的远程分支
git pull
4、拉取合并主分支(master)的远程分支
git merge origin/master
或
git pull origin master
5、查看当前本地分支的状态
git status
6、git远程分支rebase合并
git checkout master git pull git checkout local git rebase -i //合并提交 git rebase master---->解决冲突--->git rebase --continue git checkout master git merge local git push git checkout local git push
参考资料:GIT教程