Very nice to see it! But, from experience, I noticed git add -A is not the same has git commit -a or git add .. In the case who you add "new" file on project. New file need to add with git 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 only git push -f or git 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. branchs
I like this command, because for me it's more semantic than checkout in these cases.
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.
Got my first computer (ZX81) 1981, and start write programs.
I have been working as IT-Technican, but the last 23 year its software development fulltime, in many language and os.
Location
Sweden
Pronouns
Him
Work
Software Engineer on Microsoft Business central 365 (Language AL)
Experienced Software Engineer with a demonstrated history of working in the software industry. Highly Skilled in Angular, Typescript, Javascript, Es6, Web Designing, HTML, Css.
Very nice to see it! But, from experience, I noticed
git add -Ais not the same hasgit commit -aorgit add .. In the case who you add "new" file on project. New file need to add withgit add -Aotherwise 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-leaseinstead of onlygit push -forgit push --forcein most cases. A full example of this topic here.Very good, thanks for sharing.
You can use
git switchto create, change, etc. branchsI like this command, because for me it's more semantic than
checkoutin 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. 😊
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 😊
Great this will be in my "save" list. thanks.
$ man giteverydayThis is pretty neat, thanks
Thanks, that's so sweet ❤️
Good job
Nice walkthrough, what about
git prunein order to clean up for repos in origin, not existing any moreVery helpful, thanks for sharing
helpful, thank you
what about "revert" usage for some commits ?
Very good, thanks for sharing