-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 characters
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 |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|