Convert .gitmodules
entries into git submodule add
commands.
# Install deps
pip3 install -r requirements.txt
# Syntax
python3 convert_gitmodules.py [gitmodules_path] [--force]
gitmodules_path
(optional): Path to thegitmodules
file. Default is ".gitmodules".--force
(optional): Include the "--force" flag in thegit submodule add
command. Default is not to include it.
# To convert Gitmodules, run the convert_gitmodules.py script.
python convert_gitmodules.py ~/.gitmodules --force
# Output
git submodule add --force https://github.com/tonsky/FiraCode fonts/fira
git submodule add --force https://github.com/JetBrains/JetBrainsMono fonts/JetBrainsMono
git submodule add --force https://github.com/zdharma-continuum/fast-syntax-highlighting .config/zsh/plugins/fast-syntax-highlighting
This project is licensed under the MIT License. See the LICENSE file for details.