-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
57 lines (44 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Grit is just a simple tool to align your multiple repositories. It's not overwhelmingly complex; it's just a proxy for git commands to your main repo and your other repos.
Get started:
Drop the grit.rb somewhere
chmod +x it
ln -s ~/path/to/grit.rb /usr/local/bin/grit
Go to your project
grit init
Will generate .grit/config.yml
Sample config.yml
---
:root: /Users/Bono/the_world
:repositories:
- :name: Sproutcore
:path: frameworks/sproutcore
- :name: SCUI
:path: frameworks/scui
In your main proj directory
grit st
>>
[master][~/proj]$ grit st
Performing operation st on Root
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
Performing operation st on Sproutcore
# On branch master
nothing to commit (working directory clean)
Performing operation st on SCUI
# On branch master
nothing to commit (working directory clean)
grit on REPO_NAME_CASE GIT_OPERATION
will perform that operation on the repo you want
[master][~/orion]$ grit on sproutcore st
# sproutcore$ git st
# On branch master
nothing to commit (working directory clean)
grit on Root
is pwd repo... which is lame since you can just git COMMAND
grit add-repository new_name path/to/repo
grit remove-repository new_name
and to make git ignoring easier...
git config --global core.excludesfile ~/.gitignore
printf ".grit/" >> ~/.gitignore