git fetch
git checkout test
- Fork the repo
- Clone it locally:
git clone [email protected]:bonsi/laradock.git - Keep it in sync with the source:
git remote add upstream https://github.com/laradock/laradock.git - Merge upstream changes:
git checkout development
git fetch upstream
git merge upstream/development
git push origin development - Create a new feature branch to work on:
git checkout -b my-feature-name - Do your thing:
git add something
git commit -m "Whoa!"
git push origin my-feature-name - Create a PR on github
git submodule add <url>https://github.com/bonsi/repo.git [-b <branch>] [path]
git submodule update --recursive --remote
- Delete the relevant section from the
.gitmodulesfile. - Stage the .gitmodules changes via command line using:
git add .gitmodules - Delete the relevant section from
.git/config - Run
git rm --cached path/to/submoduleDon't include a trailing slash -- that will lead to an error. - Run
rm -rf .git/modules/submodule_name - Commit the change
- Delete the now untracked submodule files:
rm -rf path/to/submodule