I don't know how, but as you can see in the image i have a new empty master (4644f4b). How can i delete the new master and replace it with the old master? (9cf450d)
Asked
Active
Viewed 45 times
-2
-
1[Didn't you ask this exact question a few hours ago?](http://stackoverflow.com/questions/28453577/git-remove-commit-from-master-and-return-to-a-previous-commit) – Sascha Wolf Feb 11 '15 at 15:46
1 Answers
0
You need to reset the branch to point to the previous commit:
git reset --hard 9cf450d
SLaks
- 837,282
- 173
- 1,862
- 1,933
-
here is the error: fatal ambiguous argument '9cf450d' : unknow revision or path not in the working tree. Use '--' to separate paths from revisions, like this: git
[ – Karmagy Feb 11 '15 at 15:11...] -- [ ...] -
-