💾Git Notes
Commands
Useful Resources
Git learning game: https://learngitbranching.js.org
Useful commands for fixing mistakes: https://ohshitgit.com
Connecting to GitHub
Logging in to GitHub on the command line: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Use a personal access token instead of a password
View stored credentials (plain text)
vim ~/.git-credentials
Git Configuration Settings
View/edit git configuration settings
If there's nothing there already this will create a new file
Add this to the
[alias]
sectionPretty view of commit tree for current branch
Then run the commands
Last updated