Switch to master and develop branches and pull from remote in one command.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
.web_package
.gitignore
README.md
git_ready.sh
version.info

README.md

Installation

  1. Install this folder in ~/opt so that you have ~/opt/git_ready/git_ready.sh

  2. Set execute perms:

     `chmod u+x ~/opt/git_ready/git_ready.sh`
    
  3. Create a symlink like this:

     cd ~/bin && ln -s ~/opt/git_ready/git_ready.sh git_ready
    
  4. Add this optional alias to .bashrc

     alias gr="git_ready"
    

Usage

  1. In shell, navigate into your git repo.

  2. When you want to rebase in origin master and develop then do the following as a shell command:

     gr
    

What this does

It saves the following keystrokes and makes working in GitFlow processes faster:

    git checkout master;
    git pull --rebase;
    git checkout develop;
    git pull --rebase;
    git checkout {whatever branch you started on};
    git status;