Permalink
Browse files

gc should stage new files too

  • Loading branch information...
1 parent a380a0c commit 4549c6a08bb1d918d50019a880406dd75cc7a32f @jakearchibald committed Sep 9, 2012
Showing with 10 additions and 10 deletions.
  1. +6 −6 README.md
  2. +4 −4 git-shortcuts.sh
View
@@ -24,16 +24,16 @@ eval "$(curl -L https://raw.github.com/jakearchibald/git-convenience/master/setu
## Shortcuts
-* `gwut` - List all Git Convenience commands and prompt meanings.
+* `gwut` - List all Git Convenience commands and prompt symbols
* `gs` - git status
-* `gaa` - git add --all - Add all changes (including untracted) to staging</dd>
-* `gc "Message"` - Commit all changes (except untracked) with message</dd>
-* `goops` - Add changes to previous commit &amp; edit comessage</dd>
+* `gaa` - Add all changes (including untracted files) to staging
+* `gc "Message"` - Commit all new files & changes with message
+* `goops` - Add changes to previous commit & edit comessage
* `gp` - Pull (via rebase) then push
* `gup` - Pull (via rebase)
-* `glog` - Decorated &amp; graphed log
+* `glog` - Decorated & graphed log
* `gdiff` - A word-diff of changes
-* `gclean` - Compress &amp; garbage collect data store
+* `gclean` - Compress & garbage collect data store
If you've installed the wonderful [git-up](https://github.com/aanand/git-up) (which you should), it'll be used instead of `git pull --rebase`.
View
@@ -13,7 +13,8 @@ else
fi
function gc {
- git commit -am "$1"
+ gaa
+ git commit -m "$1"
gs
}
@@ -23,15 +24,14 @@ function goops {
}
function gwut {
- #!/bin/bash
echo "
- - - - - - - - - - - - - -
Git Convenience Shortcuts:
- - - - - - - - - - - - - -
gwut - List all Git Convenience commands and prompt symbols.
gs - git status
-gaa - git add --all - Add all changes (including untracto staging)
-gc "Message" - Commit all changes (except untracked) message
+gaa - Add all changes (including untracted files) to staging
+gc "Message" - Commit all new files & changes with message
goops - Add changes to previous commit & edit comessage
gp - Pull (via rebase) then push
gup - Pull (via rebase)

0 comments on commit 4549c6a

Please sign in to comment.