Skip to content

Instantly share code, notes, and snippets.

@emil10001
Last active March 17, 2024 00:07
Show Gist options
  • Save emil10001/7504294 to your computer and use it in GitHub Desktop.
Save emil10001/7504294 to your computer and use it in GitHub Desktop.
helpful git commands
# veiw all branches, local and remote
git branch -a
# checkout and switch to remote branch
git checkout -b somebranch origin/somebranch
# if something's screwwed up, or it didn't quite work
git pull
git reset --hard origin/somebranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment