Sunday, September 25, 2022
Git Config Cheat Sheet
›
$ git config -- global user . name < name > Define the author name to be used for all commits by the current user. $ git confi...
Git Log Cheat Sheet
›
$ git log -< limit > Limit number of commits by . E.g. git log -5 will limit to 5 commits. $ git log -- oneline Condense eac...
Remote Repositories Cheat Sheet
›
$ git remote add < name > < url > Create a new connection to a remote repo. After adding a remote, you can use as a shortcu...
Rewriting Git History Cheat Sheet
›
$ git commit -- amend Replace the last commit with the staged changes and last commit combined. Use with nothing staged to edit the last c...
Git Undoing Changes Cheat Sheet
›
$ git revert < commit > Create new commit that undoes all of the changes made in , then apply it to the current branch. $ git...
›
Home
View web version