Skip to content

Commit 43e9b4c

Browse files
committed
1 parent 9f17c87 commit 43e9b4c

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

merge-client.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

reverse-sync.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# This script synchronizes changes from the client repository to the origin repository.
4+
# It pulls from client and pushes to origin.
5+
# Use with caution as this will overwrite the origin repository.
6+
7+
echo "Fetching latest changes from both repositories..."
8+
git fetch origin
9+
git fetch client
10+
11+
echo "Checking out main branch..."
12+
git checkout main
13+
14+
echo "Pulling latest changes from client repository..."
15+
git pull client main
16+
17+
echo "Pushing changes to origin repository..."
18+
git push origin main
19+
20+
echo "Reverse sync completed! The origin repository now contains client updates."

0 commit comments

Comments
 (0)