2025年4月23日水曜日

Gitリポジトリの一括更新

 こんなバッチファイルはいかがでしょうか。

REM gitall.bat - update repositries.

for /D %%i in (*.*) do pushd %%i & git stash & git pull & popd

コマンドプロンプトに打ち込むなら %%i ではなく %i なので、こうなります。

for /D %i in (*.*) do pushd %i & git stash & git pull & popd


0 件のコメント:

コメントを投稿

Gitリポジトリの一括更新

 こんなバッチファイルはいかがでしょうか。 REM gitall.bat - update repositries. for /D %%i in (*.*) do pushd %%i & git stash & git pull & popd コマンドプロ...