I want to down load a previous version of my code into my local working directory. I assume PULL is the command I need. I've tried PULL and FETCH several times but the code in my local directory never changes. I must be doing something basically incorrect but it's a mystery. I've created no branches and I'm working alone.
Community moderators have prevented the ability to post new answers.
Hi Ray, both fetch
and pull
will update your local clone of the repository to the latest. In git, if you want to switch to an earlier revision you'd use the checkout
command. In SourceTree this is even easier to do, just find the commit in the commit history list and double click it, and it will update your working copy to that commit. Some additional info here on how to work with old commits using git checkout
- https://www.atlassian.com/git/tutorials/viewing-old-commits
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.