git的一些tip

取消跟踪:git update-index –assume-unchanged path/to/file

跟踪回来,执行:git update-index –no-assume-unchanged path/to/file

不知道git add行不行

 

撤销本地更改git reset --hard

还有一种可以暂存本地更改的

 

posted @ 2019-08-16 10:06  友善的狗W  阅读(173)  评论(0编辑  收藏  举报