Skip to content

Instantly share code, notes, and snippets.

@jeffreyssmith2nd
Created March 27, 2019 18:32
Show Gist options
  • Save jeffreyssmith2nd/e7b83651be80096ade300a5b1a042973 to your computer and use it in GitHub Desktop.
Save jeffreyssmith2nd/e7b83651be80096ade300a5b1a042973 to your computer and use it in GitHub Desktop.
Useful additions for git submodules

Run in a terminal

git config --global status.submoduleSummary true
git config --global diff.submodule log

Add the following somewhere on your path as git-spull

#!/bin/bash
git pull "$@" &&
  git submodule sync --recursive &&
  git submodule update --init --recursive

Add the following somewhere on your path as git-sbranch

#!/bin/bash
git checkout develop &&
  git checkout -b "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment