Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme

  • Loading branch information...
commit c9bab074f240fa2cbaee30d1ecc92e4cc0bbf53a 1 parent ea15118
@cespare authored
Showing with 17 additions and 3 deletions.
  1. +17 −3 README.md
View
20 README.md
@@ -7,11 +7,25 @@ quick'n'dirty scripts that get the job done and nothing more.
I've included some descriptions of the scripts below; you can also use the `--help` flag to get more info.
-Descriptions
+git-sync
+--------
+
+`git sync` is a shorthand for rebasing master onto your dev/feature branch and then fast-forwarding master
+with the changes. It takes the same arguments as the rebase.
+
+git-filename
------------
-* `git sync`: Shorthand for rebasing master onto your dev/feature branch and then fast-forwarding master with
- the changes. Takes the same arguments as the rebase.
+This is a handy script for printing filenames of modified and untracked files in your repository. It works
+well in combination with other git commands, like `git add`, as well as with system commands such as `rm` or
+`grep`. See `git filename -h` for a full list of commands. I will include some example usages here.
+
+ $ git filename --staged --newlines # Print each path to a staged change on a separate line
+ $ g f -sn # Same as above, given the proper bash and git aliases
+ $ rm `g f -t` # Delete untracked files (NOTE: you should use git-clean for this instead)
+ $ g add `g f /src/.*\.c` # git add all C files in /src/ (you can specify arbitrary ruby regexes)
+ $ g reset HEAD `g f --any \.h$ ~$` # Unstage files ending in .h or ~
+ $ vim `g f -m` # Open all merge conflicts in vim
Installation
------------
Please sign in to comment.
Something went wrong with that request. Please try again.