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
.gitmodules
file. - Stage the .gitmodules changes via command line using:
git add .gitmodules
- Delete the relevant section from
.git/config
- Run
git rm --cached path/to/submodule
Don'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