Hey there, fabulous folks! Behold, a swift and snappy cheat sheet for your Git command adventures:
git config
Setup author name and ma...
For further actions, you may consider blocking this person and/or reporting abuse
Very nice to see it! But, from experience, I noticed
git add -A
is not the same hasgit commit -a
orgit add .
. In the case who you add "new" file on project. New file need to add withgit add -A
otherwise it will be ignored.Very good explantions and work. Just a suggestion to complete your cheatsheet : it's recommend to use
git push --force-with-lease
instead of onlygit push -f
orgit push --force
in most cases. A full example of this topic here.Very good, thanks for sharing.
You can use
git switch
to create, change, etc. branchsI like this command, because for me it's more semantic than
checkout
in these cases.See more in git doc: git-scm.com/docs/git-switch
very nice list of commands, you might want to add Rewriting the most recent commit message -
git commit --amend
. This is useful when we have rules for the hook when we push the commits.Thanks for the feedback, Sri. I will add it. 😊
Great this will be in my "save" list. thanks.
$ man giteveryday
Very nice & helpful summary of numerous git features. Thanks for sharing. I bookmarked this for later use. really great
I'm really glad to hear that 😊
Very helpful, thanks for sharing
Good job
helpful, thank you
what about "revert" usage for some commits ?
Nice walkthrough, what about
git prune
in order to clean up for repos in origin, not existing any moreThanks, that's so sweet ❤️
This is pretty neat, thanks
Very good, thanks for sharing