Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Solved): Git Squash N commits to 1 commit #159

Open
0xisk opened this issue Aug 9, 2023 · 0 comments
Open

(Solved): Git Squash N commits to 1 commit #159

0xisk opened this issue Aug 9, 2023 · 0 comments
Labels
git Troubleshooting Git

Comments

@0xisk
Copy link
Owner

0xisk commented Aug 9, 2023

Answer: https://stackoverflow.com/questions/5189560/how-do-i-squash-my-last-n-commits-together/61171280#61171280

git reset --soft HEAD~2 
git commit -m "new commit message"
git push -f
@0xisk 0xisk added the git Troubleshooting Git label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git Troubleshooting Git
Projects
None yet
Development

No branches or pull requests

1 participant