git相关

git添加多个远程

1
2
3
4
5
6
# 添加远端, 一次push到多个仓库
git remote set-url --add origin https://github.com/example/test.git
# 查看远端仓库
git remote -v
# 添加远端仓库,pull/push时需要指定
git remote set-url --add other https://other.test.com/zxbetter/test.git

git 贮藏

1
2
git stash save "stash info"
git stash pop
updatedupdated2021-07-122021-07-12
加载评论