git相关
Liu Zhian
这个作者很懒,什么都没留下…
展开
-
(转)git从版本库中删除文件但不删除物理文件
如果你想把一个文件从版本控制中移除,并且保留本地的文件,首先需要把这个文件加入到gitignore文件中。然后执行以下命令就可以了。git rm file_path --cached以上命令将file_path所代表的文件从版本控制中删除,并保留本地文件,此外还要进行commit操作才能将服务器端的文件删掉。如果想把一个文件夹从版本控制中删除并保留本地的文件,只需在上述命令的基础上加上-r参数...转载 2019-02-07 11:47:09 · 6560 阅读 · 0 评论 -
my advanced Git Learning notes
Some Notes when learning advanced gitSome theoretical concepts and command line operations are recorded as follows:Branch1. What does HEAD -> master mean?HEAD is a reference to the current comm...原创 2019-10-09 15:15:18 · 128 阅读 · 0 评论