What's the git equivalent of “svn update -r”?

后端 未结 7 1776
一个人的身影
一个人的身影 2021-02-01 12:16

I\'m a recent git convert. It\'s great to be able to use git-svn to keep my branches locally without disturbing the svn server. There was a bug that existed in the latest versio

7条回答
  •  时光说笑
    2021-02-01 13:04

    There is no exact equivalent of svn update in git. If you delete a file, it will show as deleted status even if you pull it again. Only option is to checkout that file. If you have deleted multiple files by mistake and want to bring back them, You could rename that repo and clone it once again. This is what i do.

提交回复
热议问题