Last active
November 16, 2019 19:44
-
-
Save jcunanan05/3cc26d40e22eeec6f2569af466e8de7f to your computer and use it in GitHub Desktop.
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
# when git is not working. (another git process) | |
rm -f .git/index.lock | |
# triangular workflow. (pull from original repo, push from your forked repo) | |
# clone original repo, set push to your forked repo | |
git remote set-url origin [email protected]:nnja/advanced-git-exercises.git | |
git remote set-url --push origin [email protected]:jcunanan05/advanced-git-exercises.git | |
# when you get EOF error https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed | |
git config --global core.compression 0 | |
git clone --depth 1 <repo_URI> | |
git fetch --unshallow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment