
GIT
GIT
三 丰
Everything will be okay in the end. If it's not okay, it's not the end.
展开
-
Git Debug
export GIT_TRACE=1export GIT_CURL_VERBOSE=1执行上述两条命令可以在使用git的时候显示debug信息。参考:https://stackoverflow.com/questions/6178401/how-can-i-debug-git-git-shell-related-problems原创 2021-01-04 16:50:03 · 1223 阅读 · 0 评论 -
git reset soft,hard,mixed之区别深解
GIT reset命令,似乎让人很迷惑,以至于误解,误用。但是事实上不应该如此难以理解,只要你理解到这个命令究竟在干什么。首先我们来看几个术语HEAD:这是当前分支版本顶端的别名,也就是在当前分支你最近的一个提交Index:也被称为Staging area,是指一整套即将被下一个提交的文件集合。他也是将成为HEAD的父亲的那个commitWorking Copy:Working copy代表...转载 2018-07-03 13:32:04 · 2580 阅读 · 0 评论 -
git 误删分支恢复方法
在使用git的过程中,因为人为因素造成分支(commit)被删除,可以使用以下步骤进行恢复。演示恢复过程1. 先创建一个分支git branch abc2. 查看分支列表git branch -a abc* develop remotes/origin-dev/develop3.切换到abc分支,随便修改一下东西后 commit#切换分支git ch...转载 2019-05-21 23:22:10 · 7845 阅读 · 0 评论 -
git 仓库迁移
一、完全迁移(包括分支,标签和日志)git clone --mirror <URL to my OLD repo location>cd <New directory where your OLD repo was cloned>git remote set-url origin <URL to my NEW repo location>git pu...转载 2019-06-28 22:12:09 · 358 阅读 · 0 评论