Recently in a project with multiple people, a commit was made as seen in the image below. Marked in red you can see a commit with the description/comment of 'Merge?'.
This commit added numerous files and altered numerous others and was never intended to take place.
Using atlassian-sourcetree what do I need to do to roll everything back to the commit highlighted in blue? (I am 8 commits behind as seen in the screenshot.)
git reset --hard [the hash of the commit]
. – Raychergit reset
moves a branch pointer, and once the commits are "beyond the tip of any branch", they become ripe for garbage collection. (The branch's reflog keeps them around for a default expiration time of 30 days before they really get reaped.) So they're effectively gone, but in emergencies you can "un-remove" them for a month or so. – Synchromesh