Skip to content

Bash script to rebase local git branch with local master

Notifications You must be signed in to change notification settings

RettPop/pullmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

pullmaster

Bash script to rebase local git branch with local master

Usage

pullmaster [branch]

branch - optional custom branch name to rebase from. Default: master

Usecase

When you are going to work with several features and have only one git branch (like in case with Gerrit), it is pretty convenient to have set of local development branches to switch between code revisions. Then you have to keep your local master updated and branches rebased on top of it. What the script does is:

  1. stores current branch
  2. checkout [branch] (passed as a first parameter, master by default)
  3. makes git pull
  4. check out back stored branch
  5. makes git rebase [branch]

If any error, script stops.

About

Bash script to rebase local git branch with local master

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages