Workaround to have a version controlled project in another where git submodule is not allowed. This toggles the git files.
**/hide.git
**/hide.gitignore
gitswitch() {
if [ ! -d .git ]; then
mv hide.git .git
mv hide.gitignore .gitignore
else
mv .git hide.git
mv .gitignore hide.gitignore
fi
}
'''
# Usage
- step into "submodule"
- $> gitswitch