Skip to content

smnbnt/Software

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to squash your commits for a clean PR

======== Let's say you are on a branch named uglyBranch and have nothing ongoing. The steps to follow are:

git fetch 
git branch -D master

    # Just in case your merge goes wrong, save your branch in tmpbranch
git branch tmpbranch
git checkout -f master
git clean -dxf
git merge uglyBranch --no-ff --no-commit
    # Fix your conflicts with `git mergetool`
git reset
    # Verify the changeset with `git difftool`
git add -u .
git commit -m "An intuitive commit message"
git branch -D uglyBranch
git checkout -b uglyBranch
git push origin uglyBranch --force
    # If everything went well, delete tmpbranch
git branch -D tmpbranch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • QML 55.8%
  • C++ 29.7%
  • JavaScript 8.8%
  • QMake 2.0%
  • Shell 1.9%
  • Python 0.8%
  • Other 1.0%