Skip to content

Instantly share code, notes, and snippets.

@luceos
Last active July 31, 2020 19:19
Show Gist options
  • Save luceos/3937841 to your computer and use it in GitHub Desktop.
Save luceos/3937841 to your computer and use it in GitHub Desktop.
git method to install and update submodules
# commandline to initialize and download submodules
git submodule init
git submodule update
# commandline command to add commit to and close issue
# use any of these in your commit message:
# - fixes #xxx
# - fixed #xxx
# - fix #xxx
# - closes #xxx
# - close #xxx
# - closed #xxx
# only use #xxx to commit to (but not close) an issue
# update a remote repository link
git remote set-url origin ssh://newhost.com/usr/local/gitroot/myproject.git
# edit and fix merge conflicts
git mergetool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment