Skip to content

Instantly share code, notes, and snippets.

@jcunanan05
Last active November 16, 2019 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcunanan05/3cc26d40e22eeec6f2569af466e8de7f to your computer and use it in GitHub Desktop.
Save jcunanan05/3cc26d40e22eeec6f2569af466e8de7f to your computer and use it in GitHub Desktop.
git commands
# 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 git@github.com:nnja/advanced-git-exercises.git
git remote set-url --push origin git@github.com: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