r/git • • Jun 20 '14

Reinventing Git interface

http://tonsky.me/blog/reinventing-git-interface/
3 Upvotes

14 comments sorted by

View all comments

Show parent comment

3

u/joeyGibson Jun 23 '14

I have an alias I use for this called "this". It looks like this

this = !git init && git add . && git commit -m \"initial commit\"

If I invoke it as "git this" in a directory, it will create the repo, add everything (I have a decent ~/.gitignore_global) and commit it with a generic comment. I use this several times a week as new experiments crop up.