#git-essential
Need some useful shortcuts for git out of the box, but you're tired of reading through big projects with dark-magic mumbo-jumbo? You're in the right place! Only purpose of this script is to add few essential shortcuts to git, that will not overwhelm you and will speed up your work.
l- basic colored logll- log showing additions and substractions from each file in commitg- graphlds- same asl, but with datesld- same asl, but with date intervals (like "6 days ago")filelog,fl- log with file diffdl- same asll, but showing only last commitbranchdiff branch1...branch2- shows if there are any unsynchronized commits between branch1 and branch2. Useful if you are about to force delete branch that git reports as "not fully merged"
s- shortcut forstatus -sb. This will give you easy to read, clean info about status of your working tree and index. First column shows you info about file state inindex, and second column shows info about file status in working treebstands forbranch -avv. Callinggit bwill output you list of your local and remote branches, along with basic info (last commit, last commit message)co- shortcut forcheckoutst- alias ofstatus -sci- alias ofcommitcl- alias ofclonecp- alias ofcherry-pickpur- alias ofpull --rebase
- git output coloring,
rerere(REuse REcorded REsolution of conflicts - useful while rebasing)
- Clone this repository.
- Navigate to freshly created
git-essentialsfolder. - Add
executepermissions to git-essentials.sh (for example, in command line:chmod u+x git-essentials.sh) - Execute
./git-essentials.sh - Test it! Just try to run
git borgit s. Looks good, isn't it?