C
C#3y ago
ogie1985

❔ [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
ogie1985
ogie1985OP3y ago
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
Anton
Anton3y ago
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
Accord
Accord3y ago
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.

Did you find this page helpful?