-
Notifications
You must be signed in to change notification settings - Fork 0
dev08 pushing code with git
Tom Purucker edited this page Jun 7, 2018
·
1 revision
git checkout -b new_branch
git push origin new_branch
git submodule add https://github.com/quanted/some_submod_name
# delete the relevant section from the .gitmodules file [submodule "submodule_name"]
git add .gitmodules
# delete the relevant section from .git/config [submodule "submodule_name"]
git rm --cached submodule_name
rm -rf .git/modules/submodule_name
# commit the change
rm -rf submodule_name
# change dir/your-filename-here
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch dir/your-filename-here' --prune-empty --tag-name-filter cat -- --all