4 ms·
The best thing I did to help me get into using git was set up some aliases, to make it at least pretend it was like Mercurial and only needed the bare minimum n
by Zev 16y ago
The best thing I did to help me get into using git was set up some aliases, to make it at least pretend it was like Mercurial and only needed the bare minimum number of characters to complete a command (in ~/.gitconfig):
[alias]
st = status
d = diff
ci = commit
sh = stash
co = checkout
ps = push
pl = pull
cp = cherry-pick
- chalst 16y agoI'd find cp much too unintuitive as an abbreviation for cherry-pick to use; less so but likewise with sh for stash. I like the aliases at http://ruderich.org/simon/config/gitconfig http://ruderich.org/simon/config/gitconfig though I'd call "fsck --strict --full" fsf. There was an SO qn: http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain http://stackoverflow.com/questions/267761/what-does-your-git...
- brown9-2 16y agogit-sh is a pretty cool script for this sort of thing (although not aimed at similarity to mercurial): https://github.com/rtomayko/git-sh https://github.com/rtomayko/git-sh