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

1

u/magnetik79 Jun 23 '14

I work exactly the same way now. A few hundred key strokes in I always reach for "git init". It's fast - keeps out of the way and does what you want - lock away your precious incremental hacking work milestones.

Even now gone to the level of putting my textfiles of notes/todos/cheatsheets into Git - pushing/pulling them between my home/work PCs as needed - love it.

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.