基于tag建立分支并推送远端

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/tiantao2012/article/details/89848329

tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git remote add tao https://github.com/tia/kernel.git
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git fetch tao
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git status
On branch stable-1.0
nothing to commit, working tree clean
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git branch
  estuary-dev
* stable-1.0
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git push
byte     linux    origin   tao
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git remote -v
byte    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git (fetch)
byte    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git (push)
linux   https://github.com/torvalds/linux.git (fetch)
linux   https://github.com/torvalds/linux.git (push)
origin  /home/liuxl/work/kernel/linux/ (fetch)
origin  /home/liuxl/work/kernel/linux/ (push)
tao     https://github.com/tiant/kernel.git (fetch)
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git push
byte     linux    origin   tao
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git push
byte     linux    origin   tao
tiantao@EstBuildSvr1:~/kernel/rebasekernel/byte/linux$ git push tao stable-1.0

猜你喜欢

转载自blog.csdn.net/tiantao2012/article/details/89848329