清除账户密码
git config --system --unset credential.helper
更改分支
git checkout -b yourbranch origin/develop
未设置上游分支补救方法
git branch --set-upstream-to=origin/develop
删除分支
git branch -d XXX
git branch -D XXX 强制删除
查看分支
git branch
配置邮箱账户
git config --global user.name “yourname”
git config --global user.email “youremail.com”
克隆
git clone xxxx.git
创建tag
git tag DEVELOP_V01.00.00.01 dlaf44
git push origin --tags
同步代码
生成patch
git rebase origin/develop
git format-patch origin/develop
应用patch
git am --ignore-space-changed --ignore-white-space *.patch
修改已经conmit的mark
git commit --amend
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。