Git tool to update all local branches to their remote tracking branches
- Fetch
- Updates each of your branches to their remote tracking branch if they can be fast-forwarded
- Only updates your current branch if you have a clean working directory
- Does not touch any branches that are ahead or have diverged from their remote branch
- Does all this without touching your working copy! (i.e. NO checkouts, never switches your branch)
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.