Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 678 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 678 Bytes

gitup

Git tool to update all local branches to their remote tracking branches

What it does

  1. Fetch
  2. Updates each of your branches to their remote tracking branch if they can be fast-forwarded
  3. Only updates your current branch if you have a clean working directory
  4. Does not touch any branches that are ahead or have diverged from their remote branch
  5. Does all this without touching your working copy! (i.e. NO checkouts, never switches your branch)

Usage

This is a bash function. When you are in a directory which is a git repo (has a .git dir) then just run gitup.sh Just add this to your bash profile so you can run "gitup" in any directory.