git各案例命令记录

更改本地和远程分支的名称

git branch -m old_branch new_branch # Rename branch locally

git push origin :old_branch # Delete the old branch

git push –set-upstream origin new_branch # Push the new branch, set local branch to track the new remote

打增量更新包

git diff {old commit version} {new commit version} –name-only | xargs tar -czvf update.tar.gz

ghostsf wechat
一个有点意思的公号
分享到:

评论完整模式加载中...如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理