摘要:
# 退回方法: # 情况一: 本地修改了,没add ,没commit git checkout HEAD . # # 情况二:add了 git reset HEAD # # 情况三:commit后 git reset commit-id # # 情况四:push了 git revert commit-id git push # 查看提交历史commit-id git log 阅读全文
posted @ 2018-04-24 18:48
cidgur
阅读(3294)
评论(0)
推荐(0)
摘要:
# 有时候需要突然修改 .gitignore 文件,随后要立即生效git rm -r --cached . #清除缓存 git add . #重新trace file git commit -m "update .gitignore" #提交和注释 git push origin master #可选,如果需要同步到remote上的话 阅读全文
posted @ 2018-04-24 11:30
cidgur
阅读(11101)
评论(2)
推荐(0)

浙公网安备 33010602011771号