Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created March 27, 2024 20:22
Show Gist options
  • Save peterbe/09239026d9335afbbc948507b8cd61ae to your computer and use it in GitHub Desktop.
Save peterbe/09239026d9335afbbc948507b8cd61ae to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
# 1
pushd docs-internal.de-de
git diff --exit-code
git checkout main
git pull origin main
popd
# 2
pushd docs-internal.es-es
git diff --exit-code
git checkout main
git pull origin main
popd
# 3
pushd docs-internal.fr-fr
git diff --exit-code
git checkout main
git pull origin main
popd
# 4
pushd docs-internal.ja-jp
git diff --exit-code
git checkout main
git pull origin main
popd
# 5
pushd docs-internal.ko-kr
git diff --exit-code
git checkout main
git pull origin main
popd
# 6
pushd docs-internal.pt-br
git diff --exit-code
git checkout main
git pull origin main
popd
# 7
pushd docs-internal.ru-ru
git diff --exit-code
git checkout main
git pull origin main
popd
# 8
pushd docs-internal.zh-cn
git diff --exit-code
git checkout main
git pull origin main
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment