SourceTree – Not sure how to go back to a previous commit

So I’m fairly new to version control but managed to setup sourceTree with bitbucket relatively easily.

I also now understanding basic concepts such as commit, push and pull.

  • What is the difference between Stop Tracking and Discard File in git SourceTree
  • How can I commit with no fast forward option (--no-ff) in SourceTree?
  • Initial push to GitHub Missing Sub Directory
  • SourceTree filemerge quits immediately and creates 4 files. How to fix it?
  • “Updates were rejected because the tag already exists” when attempting to push in SourceTree
  • Git pre-commit hook failing in GitHub for mac (works on command line)
  • I can’t however find any documentation (that doesn’t involve text commands) on how to revert all my uncommitted changes at once to the last commit (not pushed). I can do it individually for each file but this is taking far too long.

    Many thanks!

  • What OSX/XCode version control system should I use for iPhone development?
  • How to Clone a TFS Repository with a Hyphen in the name Using git-tf
  • Git diff working incorrect - to many changes
  • Recover unreferenced commits from remote git repository
  • Having a hard time understanding git-fetch
  • GitHub network graph representing wrong first parent after merge
  • One Solution collect form web for “SourceTree – Not sure how to go back to a previous commit”

    Well I have never tried SourceTree, but you are looking for command

    git reset --hard HEAD

    which means reset working tree and index to the state of your latest commit. Looking at some SourceTree screenshorts there are two buttons with same icons that might help you. I guess they have different names in different SourceTree versions. You might want to check what’s behind Reset or Discard button. Look to hard reset to the HEAD commit.

    Git Baby is a git and github fan, let's start git clone.