随笔分类 -  git

$.extendGit 丢弃所有本地修改的方法
摘要:git checkout . #本地所有修改的。没有的提交的,都返回到原来的状态 git stash #把所有没有提交的修改暂存到stash里面。可用git stash pop回复。 git reset --hard HASH #返回到某个节点,不保留修改。 git reset --soft HAS 阅读全文
posted @ 2018-06-03 20:27 sunnie_c 阅读(351) 评论(0) 推荐(0)
Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
摘要:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). Git fetch和git pull的区别: 都可以从远程获取最新版本到本地 1.Git fetch:只是从远程获 阅读全文
posted @ 2017-12-22 14:08 sunnie_c 阅读(11250) 评论(0) 推荐(0)