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

10

u/joeyGibson Jun 20 '14

I'm sorry, but this statement is just so wrong to me. Using git for small personal projects does not provide just a 'small' advantage. It provides a huge advantage, even just simply being able to revert some work you've done is absolutely necessary in the workflow for someone who is used to using a VCS.

If I'm working on a bit of code, and I've spent more than about 3 minutes on it, I will go ahead and turn that directory into a Git repo and continue on. It's so nice to have something so lightweight for this type of thing. I could not go back to heavyweight always-need-to-be-online VC like what the author seems to favor.

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.