We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca48412 commit 000571bCopy full SHA for 000571b
git-sync.sh
@@ -33,4 +33,11 @@ echo "DESTINATION=$DESTINATION_REPO:$DESTINATION_BRANCH"
33
34
git clone "$SOURCE_REPO" source --origin source && cd source
35
git remote add destination "$DESTINATION_REPO"
36
+
37
+# Pull all branches references down locally so subsequent commands can see them
38
+git fetch source '+refs/heads/*:refs/heads/*' --update-head-ok
39
40
+# Print out all branches
41
+git --no-pager branch -a -vv
42
43
git push destination "${SOURCE_BRANCH}:${DESTINATION_BRANCH}" -f
0 commit comments