Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created July 16, 2015 15:25
Show Gist options
  • Save shadowbq/e14811f461d123ab4293 to your computer and use it in GitHub Desktop.
Save shadowbq/e14811f461d123ab4293 to your computer and use it in GitHub Desktop.
Adding a submodule to existing 3rd party repo via pull request

Fork the hack-night (https://github.com/rubyloco/hack-night.git) on github to your account (ala https://github.com/shadowbq/hack-night.git)

Using the shell download your clone, create/switch to your topic branch, add your submodule, commit it, push it to your account.

git clone https://github.com/shadowbq/hack-night.git
cd hack-night/
git remote add upstream https://github.com/rubyloco/hack-night.git
git fetch upstream
git checkout -b shadowbq-loco-flag upstream/master
git submodule add git://github.com/shadowbq/shadowbq-loco-flag meetings/2015-07-13/shadowbq
git status
git commit -m 'added my submodule'
git push origin shadowbq-loco-flag

Go to https://github.com/shadowbq/hack-night and select your feature branch.

Click the 'Pull Request' button and fill out the form.

$$ Profit $$

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