Git + launchpad
Git + launchpad
Posted May 7, 2015 15:37 UTC (Thu) by smurf (subscriber, #17840)In reply to: Git + launchpad by NAR
Parent article: Git code hosting beta (launchpadblog)
Sure you can undo a push. "git push -f destination OLD_COMMIT_HASH:branch". Or, if you want to delete a remote branch, leave OLD_COMMIT_HASH empty.
Sure you can undo a rebase. "git reset --hard OLD_COMMIT_HASH".
You get the old commit hash from the reflog, or from a gitk window you conveniently left open, or whatever.
I never had to "save a diff", by the way. What would that accomplish?
