Skip to content

Instantly share code, notes, and snippets.

@kvendrik
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save kvendrik/f2c89cba99822bb8f236 to your computer and use it in GitHub Desktop.

Select an option

Save kvendrik/f2c89cba99822bb8f236 to your computer and use it in GitHub Desktop.
Git Merge 2015 Notes
  • mkdir -p && cd
  • g clone <url> && cd
  • gs=git status

Update all submodules
git submodule foreach git pull

Remove everything from git except the specified directory
git filter-branch -f --subdirectory-filter docs

Add submodule to repo
git submodule add https://github.com/kvendrik/internal-project-docs.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment