osc&github同时推送数据.txt 795 B

123456789101112131415161718192021222324252627282930
  1. # 查看远程地址
  2. git remote -v
  3. # 添加新的远程地址
  4. git remote add osc https://git.oschina.net/hugui/light-task-scheduler.git
  5. git remote add github https://github.com/ltsopensource/light-task-scheduler.git
  6. # 推送develop的本地分支git, 所有分支的话使用--all
  7. git push -u osc develop
  8. git push -u github develop
  9. #推送所有的标签
  10. git push osc --tags
  11. git push github --tags
  12. #从远处拉取标签
  13. git fetch osc --tags
  14. git fetch github --tags
  15. # 查询远程标签
  16. git ls-remote --tags osc
  17. git ls-remote --tags github
  18. ##
  19. ~/Data/Software/apache-maven-3.2.5/bin/mvn clean install -U -DskipTests
  20. ~/Data/Software/apache-maven-3.2.5/bin/mvn clean deploy -DskipTests
  21. ~/Data/Software/apache-maven-3.2.5/bin/mvn clean deploy -P release -Dgpg.passphrase=密码 -DskipTests