git 常用命令

2017-12-05  本文已影响8人  客舟求简

查看远程分支

git remote -v

导出代码

$git archive --format zip --output "./output.zip" master -0

新建分支

// 创建并切换到新分支
$git checkout -b  branchName  
// 提交该分支到远程仓库
$git push origin branchName
// 本地分支与远程分支进行关联
git branch --set-upstream-to=origin/branchName branchName

对上一次的提交做修改

git commit --amend
上一篇 下一篇

猜你喜欢

热点阅读