Skip to content

Commit

Permalink
fix: 升级git push方式:合并remote
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 11, 2021
1 parent 14437b0 commit c8c40a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Tools/setup_repos.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
chcp 65001
REM [Working with Git remotes and pushing to multiple Git repositories | Jigarius.com]( https://jigarius.com/blog/multiple-git-remote-repositories )
git remote remove remote
git remote add remote git@github.com:snomiao/CapsLockX.git
git remote set-url --add --push remote git@github.com:snomiao/CapsLockX.git
git remote set-url --add --push remote git@gitee.com:snomiao/CapslockX.git
git remote set-url --add --push remote git@bitbucket.org:snomiao/capslockx.git
git fetch --all
git push --set-upstream remote master
git push
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"versioning": "git commit -a -m versioning",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"version": "node tools/versioning.node.mjs && npm run changelog",
"postversion": "npm run versioning && npm run gitsync",
"postversion": "npm run versioning && git push --follow-tag",
"gitsync": "npm run gitsync:gh && npm run gitsync:cn && npm run gitsync:bb",
"gitpush:gh": "git push --follow-tag --repo [email protected]:snomiao/CapsLockX.git",
"gitpull:gh": "git pull [email protected]:snomiao/CapsLockX.git",
Expand Down

0 comments on commit c8c40a8

Please sign in to comment.