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] email = my_email_address name = Jeremy Herve signingkey = my_signing_key [github] user = jeherve token = my_token [color] branch = true ui = true diff = true status = true [alias] s = status ci = commit co = checkout cp = cherry-pick ls = branch -a oops = reset --soft HEAD~1 rh = reset --hard save = stash save rh = reset --hard save = stash save pop = stash pop --index restash = !git stash pop --index && git stash save rs = !git stash pop --index && git stash save files = diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT lola = log --oneline --decorate --graph -n 15 --all ll = log --stat --abbrev-commit one = log --pretty=tformat:"%H" -1 pushf = ! [[ $(git symbolic-ref --short HEAD) != \"master\" ]] && git push --force-with-lease [help] autocorrect = 1 [core] editor = nano [push] default = simple [commit] gpgsign = true [color "status"] added = green changed = yellow untracked = red modified = yellow [pull] rebase = false
That’s it. If you have any recommendations or remarks, let me know! I am always looking for more tips!