A console script that allows you to easily update multiple git repositories at once
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
13 лет назад
10 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. __gitup__ (the _git-repo-updater_)
  2. gitup is a tool designed to pull to a large number of git repositories at once.
  3. It is smart enough to ignore repos with dirty working directories, and provides
  4. a (hopefully) great way to get everything up-to-date for those short periods of
  5. internet access between long periods of none.
  6. gitup should work on OS X, Linux, and Windows. You should have the latest
  7. version of git and at least Python 2.7 installed.
  8. # Installation
  9. First:
  10. git clone git://github.com/earwig/git-repo-updater.git
  11. cd git-repo-updater
  12. Then, to install for everyone:
  13. sudo python setup.py install
  14. ...or for just yourself (make sure you have `~/.local/bin` in your PATH):
  15. python setup.py install --user
  16. Finally, simply delete the `git-repo-updater` directory, and you're done!
  17. __Note:__ If you are using Windows, you may wish to add a macro so you can
  18. invoke gitup in any directory. Note that `C:\python27\` refers to the
  19. directory where Python is installed:
  20. DOSKEY gitup=c:\python27\python.exe c:\python27\Scripts\gitup $*
  21. # Usage
  22. There are two ways to update repos: you can pass them as command arguments,
  23. or save them as "bookmarks".
  24. For example:
  25. gitup ~/repos/foo ~/repos/bar ~/repos/baz
  26. will automatically pull to the `foo`, `bar`, and `baz` git repositories if
  27. their working directories are clean (to avoid merge conflicts). Additionally,
  28. you can just type:
  29. gitup ~/repos
  30. to automatically update all git repositories in that directory.
  31. To add a bookmark (or bookmarks), either of these will work:
  32. gitup --add ~/repos/foo ~/repos/bar ~/repos/baz
  33. gitup --add ~/repos
  34. Then, to update (pull to) all of your bookmarks, just run gitup without args:
  35. gitup
  36. Deleting a bookmark is as easy as adding one:
  37. gitup --delete ~/repos
  38. Want to view your current bookmarks? Simple:
  39. gitup --list
  40. You can mix and match bookmarks and command arguments:
  41. gitup --add ~/repos/foo ~/repos/bar
  42. gitup ~/repos/baz # update 'baz' only
  43. gitup # update 'foo' and 'bar' only
  44. gitup ~/repos/baz --update # update all three!
  45. Want to update all git repositories in your current directory?
  46. gitup .
  47. For a list of all command arguments and abbreviations:
  48. gitup --help
  49. Finally, all paths can be either absolute (e.g. `/path/to/repo`) or relative
  50. (e.g. `../my/repo`).