Alrighty, so here’s a running list of things I use most often with Git and GitHub:

To download a new repository into a folder that’s automatically created:

git clone https://github.com/mikeusru/repo_name.git

To update the current repository with changes from github:

git pull

When you make some changes that you want to save (a few times a day, or every time you start something new):

git add .
git commit -m "a summary of the changes"
git push

When you made some changes locally but want to download whatever other changes have been made in the github, and without losing the local changes:

git stash
git pull
git stash apply

When you want to make a new branch

git checkout -b new_branch_name
git push --set-upstream origin new_branch_name

when you want to switch to a remote branch

git fetch
git checkout -b new_branch_name origin/new_branch_name

when you’re done with a branch and want to merge it into the main branch

git checkout old_branch_name 
#main or master, whatever the main branch is called

git merge new_branch_name