您的位置:首页 > 其它

git 命令总结

2013-10-17 16:10 232 查看
git clone git@example.com:project-name.git 克隆
git branch [-a -r] 查看分支【所有 远端】
git pull $origin $branch_name 拉代码
git push $origin $branch_name 推代码
git checkout [-b] $feature_name 切换【创建】分支
git status
git log
git add xxx
git rm yyy
git commit -m 'xxx'
git commit -am 'yyy'
git diff [$branch] [$another]
git fetch -p 用来同步远端的分支信息,删除本地远端列表中远端服务器已经删除的分支
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: