Simple as following
> git checkout bugfix/bugone
//do 6 commits and push it upstream
//now you want to squash all 6 in to one
//do the sqashing by number of commits
> git reset --soft HEAD~6 &&
> git commit
//force push the newly created single commit to upstream
//make sure you are the only user of this branch
> git push origin bugfix/bugone --force
Wednesday, October 16, 2019
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment