-
Notifications
You must be signed in to change notification settings - Fork 0
Branches and Merges
Rebase your feature branch, instead of merging mainline
$ git pull --ff-only
Squash branch instead of commit and mergge commit
Une maniere simple de faire cette operation est d'utiliser cherry-pick:
$ git remote update # load latest PR refs
$ git cherry-pick <commit>
$ git commit --amend # fix commit message that usually sucks
S'il y a plusieurs commits à merger de cette facon on peut faire:
$ git cherry-pick <commit1> <commit2> ...
en ordre chronologique, mais c'est souvent un signe qu'il faut rebaser/squasher les commits en un seul commit propre. La sequence devient donc:
$ git remote update
$ git cherry-pick <commit1> <commit2> ...
$ git rebase -i # squash commits + fix commit message
Website | Online Demo | Community | Documentation | Help
Boost Sales: CRM | Point of Sale | Quote Builder | Mass Mailing | Survey | Events
Build Websites: CMS | eCommerce | Blogs | Forum | Get a Free Website
Run Operations: Projects | Billing | Accounting | Inventory | Manufacturing | Procurements
Delight Employees: Employees | Enterprise Social Network | Recruit | Expenses | Appraisals | Fleet