Picking only some commits from master to work in a separated branch

    Sometimes it’s necessary remove some commits temporarily from your topic branch. If you use git-revert to do that, your commit will be lost, and any change on this branch that requires a merge with master will remove that commit from master too. So for these cases there is “git-rebase -i”.

    With interactive rebase you can choose the commits that will stay or not. That’s cool, because you can create a branch from your master and then remove only the commits related with features that are not good to go. So your deploy can be done from this other branch.

    So, next time you need release just some commits from your master, remember of “git-rebase -i”.

    Deployment Script Spring Cleaning - GitHub →

    Pro Git - Table of Contents →

    Working with Rails ⋅  GitHub ⋅  Twitter ⋅  Linked In ⋅  Facebook ⋅  Powered by tumblr
    Fork me on GitHub