You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ Manage bundle and migrations automatically while you use git!
6
6
For example:
7
7
8
8
- If you pull down code from your remote and there are new or updated gems
9
-
* it will run `bundle` for you
9
+
* it will run `bundle` for you
10
10
- If you checkout a branch that uses a different set of migrations
11
-
* it will roll back the old set and apply the new ones
11
+
* it will roll back the old set and apply the new ones
12
12
- If you rebase and there are new gems and migrations
13
-
* it will run `bundle` and `rake db:migrate test:prepare`
13
+
* it will run `bundle` and `rake db:migrate test:prepare`
14
14
- If you don't like automagical git hooks
15
-
* run `git_rails` and it will try and find out where you came from and run the same check
15
+
* run `git_rails` and it will try and find out where you came from and run the same check
16
16
17
17
### Install
18
18
@@ -43,6 +43,19 @@ Or if you really know what you are doing and you want to pretend like you are on
43
43
44
44
Migrations that were added between `REF_YOU_CAME_FROM` and `REF_YOU_ARE_GOING_TO` that do not exist on your current `HEAD` will not be applied because they don't exist!!
45
45
46
+
#### Options
47
+
48
+
The following command line options are supported:
49
+
50
+
* -v, --verbose
51
+
* Display pending changes, prompt to continue, display command output
52
+
* -y, --auto_confirm
53
+
* Use in conjunction with verbose mode to apply pending changes without prompting
54
+
* -d, --dry_run
55
+
* Display pending changes and exit
56
+
* -h, --help
57
+
* Display usage and exit
58
+
46
59
#### Hooks
47
60
48
61
You shouldn't have to think about the hooks once they are installed. Just pull, checkout, and rebase as normal and they should work fine. If you find that `git_rails` hasn't fired when it should follow the command instructions to run it manually.
0 commit comments