Created
April 27, 2023 17:42
-
-
Save adamz01h/507d0133db11f5be2f4e93887e203d9d to your computer and use it in GitHub Desktop.
git help
This file contains hidden or 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
| roll back branch | |
| git checkout <branch> | |
| git reset --hard <commit> | |
| git push --force origin master | |
| create new from current | |
| git checkout -b <branch> | |
| always assume file is unchanged. | |
| git update-index --assume-unchanged <file> | |
| git config credential.helper | |
| git config --global credential.helper store | |
| add file to .gitignore | |
| commit it, then | |
| git rm -r --cached <file> | |
| now file should be ignored | |
| git remote -v | |
| origin http://github.com/{USERNAME}/{PROJECTNAME}.git (fetch) | |
| origin http://github.com/{USERNAME}/{PROJECTNAME}.git (push) | |
| git remote set-url origin [email protected]:salt_black_box/saltblackbox.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment