What is equivalent to git "svn update -r"?

I am a recent git converter. It is good to be able to use git-svn to support local branches without disrupting the svn server. An error occurred in the latest version of the code. I wanted to set the time when it worked so that I could use git bisect. I could not find the right team to go back in time. Thank.

+55
git git-checkout svn git-svn svn-update
Feb 21 '09 at 19:13
source share
5 answers
git checkout HEAD~1 

This will cause your current HEAD to be migrated to the previous version.

 git checkout <sha> 

This will move your current HEAD to this revision. Use git log or gitk to find the version you are looking for.

+62
Feb 21 '09 at 19:20
source share

And back to the latter (equivalent: svn up), you will need to update the branch, as a rule:

 git checkout master 

This is because HEAD refers to the version that is being checked.

+20
Mar 09 2018-11-11T00:
source share
  git pull 

seems more suitable for what you are looking for

+1
Jun 20 '14 at 1:03
source share

This is similar to what I wanted, and this is what I think you are asking too

 git checkout * 
0
02 Oct '14 at 15:18
source share

If you are using TortoiseGit, then

 Right Click in project folder > TortoiseGit > Pull 
0
Feb 05 '15 at 7:26
source share



All Articles