GIT命令总结

git branch :查看分支

git branch 分支名称 :创建分支

git checkout 分支名称 :切换分支

git merge 要合并的分支 :分支合并(可能发生冲突)

git branch -d 分支名称 :删除分支

git remote add origin 远程仓库地址 :给仓库起别名

git push -u origin 分支名称 :向远程仓库推送分支代码

git clone 远程仓库地址 :克隆远程仓库代码

git pull origin 分支名称 :更新代码

你可能感兴趣的:(GIT,git,github)