aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.local/bin/git-pulll-old
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 17:14:45 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 17:14:45 +0300
commit347a68546c0d7df97000bc2a80ebd1d5ceb39e40 (patch)
tree92f621dbd04547c0a1fcc8044332393bea6dda1e /%HOME%/.local/bin/git-pulll-old
parent.bashrc_work -> .bashrc_local (diff)
downloadlinux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.tar.gz
linux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.zip
.gitconfig: no more external scripts
Diffstat (limited to '%HOME%/.local/bin/git-pulll-old')
-rw-r--r--%HOME%/.local/bin/git-pulll-old8
1 files changed, 8 insertions, 0 deletions
diff --git a/%HOME%/.local/bin/git-pulll-old b/%HOME%/.local/bin/git-pulll-old
new file mode 100644
index 0000000..79299e5
--- /dev/null
+++ b/%HOME%/.local/bin/git-pulll-old
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# This is cool:
+# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407
+
+git pull "$@" \
+ && git submodule sync --recursive \
+ && git submodule update --init --recursive