Skip to content

Instantly share code, notes, and snippets.

@dmthuc
Last active December 26, 2018 04:15
Show Gist options
  • Save dmthuc/5ee569d42439ad341320962dfab62e21 to your computer and use it in GitHub Desktop.
Save dmthuc/5ee569d42439ad341320962dfab62e21 to your computer and use it in GitHub Desktop.
Git command
# Update submodule for module that have been initialized
git submodule update --recursive --remote --merge
# Pull submodule data for new clone
git submodule update --init
# Update submodule for module that haven't been initialized
git submodule update --init --recursive
# Git push to branch
git push -u origin branch-name
# Git push to delete a branch
git push origin --delete port_websession_stats2_to_take_input_data_from_clickhouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment