|
|
@@ -1,9 +1,9 @@ |
|
|
|
__gitup__ (the _git-repo-updater_) |
|
|
|
|
|
|
|
gitup is a tool designed to pull to a large number of git repositories at once. |
|
|
|
It is smart enough to ignore repos with dirty working directories, and provides |
|
|
|
a (hopefully) great way to get everything up-to-date for those short periods of |
|
|
|
internet access between long periods of none. |
|
|
|
gitup is a tool designed to update a large number of git repositories at once. |
|
|
|
It is smart enough to handle multiple remotes, branches, dirty working |
|
|
|
directories, and more, hopefully providing a great way to get everything |
|
|
|
up-to-date for short periods of internet access between long periods of none. |
|
|
|
|
|
|
|
gitup should work on OS X, Linux, and Windows. You should have the latest |
|
|
|
version of git and at least Python 2.7 installed. |
|
|
@@ -40,9 +40,8 @@ For example: |
|
|
|
|
|
|
|
gitup ~/repos/foo ~/repos/bar ~/repos/baz |
|
|
|
|
|
|
|
will automatically pull to the `foo`, `bar`, and `baz` git repositories if |
|
|
|
their working directories are clean (to avoid merge conflicts). Additionally, |
|
|
|
you can just type: |
|
|
|
will automatically pull to the `foo`, `bar`, and `baz` git repositories. |
|
|
|
Additionally, you can just type: |
|
|
|
|
|
|
|
gitup ~/repos |
|
|
|
|
|
|
@@ -53,15 +52,15 @@ To add a bookmark (or bookmarks), either of these will work: |
|
|
|
gitup --add ~/repos/foo ~/repos/bar ~/repos/baz |
|
|
|
gitup --add ~/repos |
|
|
|
|
|
|
|
Then, to update (pull to) all of your bookmarks, just run gitup without args: |
|
|
|
Then, to update all of your bookmarks, just run gitup without args: |
|
|
|
|
|
|
|
gitup |
|
|
|
|
|
|
|
Deleting a bookmark is as easy as adding one: |
|
|
|
Delete a bookmark: |
|
|
|
|
|
|
|
gitup --delete ~/repos |
|
|
|
|
|
|
|
Want to view your current bookmarks? Simple: |
|
|
|
View your current bookmarks: |
|
|
|
|
|
|
|
gitup --list |
|
|
|
|
|
|
@@ -72,10 +71,18 @@ You can mix and match bookmarks and command arguments: |
|
|
|
gitup # update 'foo' and 'bar' only |
|
|
|
gitup ~/repos/baz --update # update all three! |
|
|
|
|
|
|
|
Want to update all git repositories in your current directory? |
|
|
|
Update all git repositories in your current directory: |
|
|
|
|
|
|
|
gitup . |
|
|
|
|
|
|
|
By default, gitup will fetch all remotes in a repository. Pass `--current-only` |
|
|
|
(or `-c`) to make it only fetch the remote tracked by the current branch. |
|
|
|
|
|
|
|
gitup will _merge_ upstream branches by default unless `pull.rebase` or |
|
|
|
`branch.<name>.rebase` is specified in git's config. Pass `--rebase` or `-r` to |
|
|
|
make it always _rebase_ (like doing `git pull --rebase=preserve`). Pass |
|
|
|
`--merge` or `-m` to make it always merge. |
|
|
|
|
|
|
|
For a list of all command arguments and abbreviations: |
|
|
|
|
|
|
|
gitup --help |
|
|
|