❔ [Git] How to grab your pushed changes back
Maybe it's not home here but I'm curious how I could grab my pushed changes back because I need to make some cleaner commits
3 Replies
I want to have the changes locally but uncommited/pushed is there a way?
nvm i squashed all my changes and a git reset --mixed did the job
you'll have to rewrite remote history
you'd do a squash locally and then push force to the remote
if you're the only person working on a project it's fine
just be sure to pull and discard local changes on other machines that have the old history
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.