Merge pull request #295 from mcarton/new-git-rules

New git rules
This commit is contained in:
Vladimir Iakovlev
2015-07-20 20:42:02 +03:00
5 changed files with 104 additions and 0 deletions
+2
View File
@@ -167,7 +167,9 @@ using the matched rule and runs it. Rules enabled by default are as follows:
* `git_diff_staged` – adds `--staged` to previous `git diff` with unexpected output;
* `git_no_command` – fixes wrong git commands like `git brnch`;
* `git_pull` – sets upstream before executing previous `git pull`;
* `git_pull_clone` – clones instead of pulling when the repo does not exist;
* `git_push` – adds `--set-upstream origin $branch` to previous failed `git push`;
* `git_push_force` – adds `--force` to a `git push`;
* `git_stash` – stashes you local modifications before rebasing or switching branch;
* `go_run` – appends `.go` extension when compiling/running Go programs
* `grep_recursive` – adds `-r` when you trying to grep directory;