Last active
March 17, 2024 00:07
-
-
Save emil10001/7504294 to your computer and use it in GitHub Desktop.
helpful git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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