My .gitconfig file
I recently updated to Mountain Lion, and had to install a few more things to get Git to work properly.
I also realized that Git GUI stopped working. A quick addition to my .gitconfig file did the trick, but I thought I’d take the opportunity to share my .gitconfig file with you; it could be useful to someone, and I will be able to come back to that post next time I change my computer :)
[user] name = Jeremy Herve email = my_email_address [github] user = jeherve token = my_token [color] branch = true ui = true diff = true status = true [alias] s = status ci = commit co = checkout ls = branch -a oops = reset --soft HEAD~1 rh = reset --hard save = stash save pop = stash pop --index gui = !sh -c '/usr/local/git/libexec/git-core/git-gui' [help] autocorrect = 1
That’s it. If you have any advices or remarks, let me know! I am always looking for more tips!
I like ‘oops’, I will cherry-pick it. Here is mine: (credit goes to @tibor and @akos, don’t know anymore which line belongs to who):
That’s a nice follow up! I don’t really use git log (I use gitk for that kind of things), but your some of your aliases make git log a bit more interesting, thanks!
I like lola… :)
Some missing:
I love myinit. It’s simple, but such a time saver. I have added it to my file, thanks!
Not exactly a .gitconfig tip, and I haven’t used git gui much, but http://gitx.laullon.com/ is what I use
I don’t really use Git GUI either, only when I have been lazy and neglected to commit changes for a while. It then becomes a bit too messy to handle via command line :)
I will give GitX a try then, it seems cool! Thanks!