Created
July 8, 2024 20:01
-
-
Save yashwanth-l/a1fcd3f5313eee386e53e5ac1cebd686 to your computer and use it in GitHub Desktop.
Revisions
-
yashwanth-l created this gist
Jul 8, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} fetch origin main:main \; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} merge main \; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} add -A \; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} commit -m "commit message example" \; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} push origin some-branch \;