Golang编程语言知识介绍


  • 首页

  • todo

  • 思考

  • life

  • food

  • OS

  • lua

  • redis

  • Golang

  • C

  • TCP/IP

  • ebpf

  • p4

  • OpenVPN

  • IPSec

  • L2TP

  • DNS

  • distributed

  • web

  • OpenWRT

  • 运维

  • Git

  • 鸟哥的私房菜

  • IT杂谈

  • 投资

  • About Me

  • 友情链接

  • FTP

  • 搜索
close

将Git存储库从一个平台fork到另外一个平台

时间: 2022-10-08   |   分类: git   运维     |   阅读: 296 字 ~1分钟

从github到github

打开你想fork的项目界面,点击fork按钮即可将此项目fork到你的github账户上;

在不同的平台之间fork

  • 在平台B上新建一个空的仓库 eg:git@github.com:shankusu2017/uhttpd-openwrt.git,并 clone 到本机上;
  • 在本机上将新创建的仓库的"上游"设置为你原本想 fork 的地址 eg:git remote add upstream https://git.openwrt.org/project/uhttpd.git
  • 将平台A的上游代码同步到本机上 git pull upstream master
  • 将本机上最新的代码提交到自己的平台B仓库中 git push origin master

同步上游的tags

  • 拉取上游平台A上的的tags: git fetch upstream
  • 提交到自己的平台B上 git push –tags

以上内容转载自网友的blog,如有侵权请联系站长

#git# #运维#
LRU原理和Redis的实现
find grep linux中查找文件和字符串
shankusu2017@gmail.com

shankusu2017@gmail.com

日志
分类
标签
GitHub
© 2009 - 2025
粤ICP备2021068940号-1 粤公网安备44011302003059
0%