What are the most useful git commands you know, that must people don't know? Panda Quests on April 21, 2020
I like to use
git status -sb. Basically, it gives you the clean version ofgit status.Super. Thanks for sharing
git log --oneline --graphThanks for sharing
I don't know, but I think it depends on whether you are a git master (if you are so good).
TIL
git rebase -i HEAD~10, and edit it to either split or squash commits. Thengit push -f.git config --global core.editor 'nano'is required, if you are bad with vim. If you want to use VSCode, probably'code -w', I think, I forgot.Love it. Although I know this one already
Understood, tested it. ☑️
Thanks, Daniel.
Daniel - You can update the commit message even after it's pushed.
git push origin <branch_name> -fAh classic. I know that one, too. Don't forget to force push. Thanks for sharing
May I please know what exactly the above command does ?
i like this:
git update-index --assume-unchanged filename
Awesome. Never used it before. Will try. Thanks for sharing