Track Submodule Branch

- Update submodules to track branches instead of specific commits
- Update README to include "--remote" option for updating submodules
This commit is contained in:
Sravan Balaji
2021-05-12 20:25:32 -04:00
parent b96956c340
commit c6648c5f79
5 changed files with 20 additions and 4 deletions

16
.gitmodules vendored
View File

@@ -1,48 +1,64 @@
[submodule ".vim/pack/themes/start/dracula"] [submodule ".vim/pack/themes/start/dracula"]
path = .vim/pack/themes/start/dracula path = .vim/pack/themes/start/dracula
url = git@github.com:dracula/vim.git url = git@github.com:dracula/vim.git
branch = master
[submodule ".themes/dracula-blender"] [submodule ".themes/dracula-blender"]
path = .themes/dracula-blender path = .themes/dracula-blender
url = git@github.com:dracula/blender.git url = git@github.com:dracula/blender.git
branch = master
[submodule ".themes/dracula-freecad"] [submodule ".themes/dracula-freecad"]
path = .themes/dracula-freecad path = .themes/dracula-freecad
url = git@github.com:dracula/freecad.git url = git@github.com:dracula/freecad.git
branch = master
[submodule ".themes/dracula-gnome-terminal"] [submodule ".themes/dracula-gnome-terminal"]
path = .themes/dracula-gnome-terminal path = .themes/dracula-gnome-terminal
url = git@github.com:dracula/gnome-terminal.git url = git@github.com:dracula/gnome-terminal.git
branch = master
[submodule ".themes/dracula-xournalpp"] [submodule ".themes/dracula-xournalpp"]
path = .themes/dracula-xournalpp path = .themes/dracula-xournalpp
url = git@github.com:dracula/xournalpp.git url = git@github.com:dracula/xournalpp.git
branch = master
[submodule ".themes/dracula-steam"] [submodule ".themes/dracula-steam"]
path = .themes/dracula-steam path = .themes/dracula-steam
url = git@github.com:dracula/steam.git url = git@github.com:dracula/steam.git
branch = master
[submodule ".themes/dracula-gtk"] [submodule ".themes/dracula-gtk"]
path = .themes/dracula-gtk path = .themes/dracula-gtk
url = git@github.com:dracula/gtk.git url = git@github.com:dracula/gtk.git
branch = master
[submodule ".themes/dracula-fish"] [submodule ".themes/dracula-fish"]
path = .themes/dracula-fish path = .themes/dracula-fish
url = git@github.com:dracula/fish.git url = git@github.com:dracula/fish.git
branch = master
[submodule ".themes/dracula-kitty"] [submodule ".themes/dracula-kitty"]
path = .themes/dracula-kitty path = .themes/dracula-kitty
url = git@github.com:dracula/kitty.git url = git@github.com:dracula/kitty.git
branch = master
[submodule ".themes/dracula-libreoffice"] [submodule ".themes/dracula-libreoffice"]
path = .themes/dracula-libreoffice path = .themes/dracula-libreoffice
url = git@github.com:dracula/libreoffice.git url = git@github.com:dracula/libreoffice.git
branch = master
[submodule ".themes/dracula-tty"] [submodule ".themes/dracula-tty"]
path = .themes/dracula-tty path = .themes/dracula-tty
url = git@github.com:dracula/tty.git url = git@github.com:dracula/tty.git
branch = master
[submodule ".themes/dracula-latex"] [submodule ".themes/dracula-latex"]
path = .themes/dracula-latex path = .themes/dracula-latex
url = git@github.com:dracula/latex.git url = git@github.com:dracula/latex.git
branch = master
[submodule ".themes/dracula-matplotlib"] [submodule ".themes/dracula-matplotlib"]
path = .themes/dracula-matplotlib path = .themes/dracula-matplotlib
url = git@github.com:dracula/matplotlib.git url = git@github.com:dracula/matplotlib.git
branch = master
[submodule ".themes/dracula-matlab"] [submodule ".themes/dracula-matlab"]
path = .themes/dracula-matlab path = .themes/dracula-matlab
url = git@github.com:dracula/matlab.git url = git@github.com:dracula/matlab.git
branch = master
[submodule ".config/emacs"] [submodule ".config/emacs"]
path = .config/emacs path = .config/emacs
url = git@github.com:balajsra/emacs.git url = git@github.com:balajsra/emacs.git
branch = main
[submodule ".xmonad"] [submodule ".xmonad"]
path = .xmonad path = .xmonad
url = git@github.com:balajsra/xmonad.git url = git@github.com:balajsra/xmonad.git
branch = master

View File

@@ -67,7 +67,7 @@ Set the flag ~showUntrackedFiles~ to ~no~ on this specific (local) repo
Pull and update submodules Pull and update submodules
#+begin_src shell #+begin_src shell
config git submodule update --init --recursive config git submodule update --init --recursive --remote
#+end_src #+end_src
* Git * Git