6 Handy Git Commands
when it comes to web development, im a traditionalist with certain things. homemade components. π±πΆπ³π¦ css layouts. solving merge conflicts on vim. some call it inefficient, but sometimes itβs nice to write stuff manually in a field that can sometimes feel so automated. β also, github gui confuses the hell out of me so hereβs old lady angela coming straight at ya with 6 of my πππ«π€π§ππ©π πππ© ππ€π’π’ππ£ππ¨:
πππ ππππππ --πππππ
great for squashing staged files into your last commit - perfect for someone like me who will commit βWIPβ every two hours and end up with a 70 line commit history (@imsaurabhchavan can vouch for this)
πππ ππππππ -π π·π΄π°π³~4
interactive rebase allows you to pick and choose which commits you can pick, squash, reword, edit, or fixup. heads up, youβll need noob vim knowledge to use this
πππ πππ -5 --ππππππ’ --πππππππ
prints the last 5 commits neatly on the terminal - you can change this number to anything
πππ ππππππππ -ππ
pretty cool command that lists all users who contributed to the repo and sorts by commit counts
πππ ππππ --πππππππππ "@{0 πππ’ πππ}"
command that shows how many lines of code you have written today
πππ πππ -π ππ’π πππππππ
looks for the addition or removal of a word (in this case, myVariable - you can change this to anything) in a commit but not in a commit message
Original Instagram Post: https://www.instagram.com/p/B_BNdYQn2oH/