![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Dewey_DD
这个作者很懒,什么都没留下…
展开
-
github fork源仓库后保持同步
保持github主页仓库和本地仓库与源仓库同步1:fork源仓库 2:clone到本地git clone git@github.com:username/repositoryname.git3:添加源仓库路径git remote add upstream https://github.com/owername/pouch.git4:源仓库路径设置git remote set-url --push原创 2017-12-09 00:16:18 · 637 阅读 · 0 评论 -
git修改user.name和user.email后找回之前的commit
当你修改你的user.email后之前提交的commit将不“属于”你,在你github主页上也没有相关的commit记录。那么如何找回这些commit呢。1.使用下面命令重新clone你的仓库。repo指你的仓库名git clone --bare https://github.com/user/repo.gitcd repo.git2.使用git log查看之前commit的emailgit l原创 2018-04-02 11:24:59 · 903 阅读 · 0 评论