Timeline for Git, How to reset origin/master to a commit?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 27, 2021 at 14:41 | comment | added | Keith Pickering | This is the way to do it if you seriously fubar'd your branch, you just want it back to a workable state, and nobody else is working on it remotely. | |
Aug 17, 2015 at 3:45 | comment | added | KarenAnne | Hi @jkovacs, I just confirmed that I can skip the 2nd step. :) | |
Aug 17, 2015 at 3:34 | comment | added | KarenAnne | Hi @jkovacs, I don't want new changes in master to be removed. I just want to push that commit hash "e3f1e37" to origin master. Is it possible by skipping the 2nd command git reset --hard "e3f1e37"? | |
Jul 18, 2015 at 13:30 | comment | added | HankCa |
The answer to this is at stackoverflow.com/a/10544328/1019307 - git config receive.denynonfastforwards false but actually I set that manually in my local git repository I have in /opt/git that I created to play with the ideas here. I'm not sure how or if can do this for bitbucket, github etc... And @intuitivepixel that is pointless as it reverse what you were trying to achieve with the hard reset.
|
|
Mar 16, 2015 at 19:50 | comment | added | intuitivepixel |
@m0skit0 as the message say's you should pull first :)
|
|
Jan 16, 2015 at 10:37 | comment | added | m0skit0 |
Doesn't work: remote: error: denying non-fast-forward refs/heads/master (you should pull first)
|
|
Aug 19, 2014 at 19:03 | review | Late answers | |||
Aug 19, 2014 at 19:15 | |||||
Aug 19, 2014 at 18:47 | review | First posts | |||
Aug 19, 2014 at 18:53 | |||||
Aug 19, 2014 at 18:44 | history | answered | jkovacs | CC BY-SA 3.0 |