Skip to content

Instantly share code, notes, and snippets.

Avatar

Kunwardeep kunwardeep

View GitHub Profile
@kunwardeep
kunwardeep / merge all commits
Last active Jan 30, 2019
Merge all commits from a branch into a single commit
View merge all commits
git checkout yourBranch
git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD))
git add -A
git commit -m "one commit on yourBranch"
git push --force
You can’t perform that action at this time.