Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 370 Bytes

Git.md

File metadata and controls

20 lines (17 loc) · 370 Bytes

Git commands and configurations

1. Change commit author

git commit --amend --author="Name <[email protected]>"

2. Combine multiple commits in single commit after push

git checkout my_branch
git reset --soft HEAD~4
git commit
git push origin +my_branch

OR

git rebase -i origin/master~5 master
git push origin +master