Ask HN:我们是不是用错了 Git?
1 分•作者: modinfo•大约 2 个月前
Git 的潜力更大,甚至“origin”这个词现在都成了某种“Git 词汇”标准,我们甚至可以更好地使用命名方式。
简单示例:
```
git push github dev 或者 git push aur master
```
使用一个仓库,我就可以推送到两个服务器的不同分支。
此外,GitHub 上的仓库应该默认使用:
```
git push github main 或者 git push gh main
```
```
git push <origin> main
```
查看原文
Git have more potential, even word `origin` is now kinda "git word" standard, even we can use naming in better way.
Simple example:<p>git push github dev OR git push aur master<p>with a single repo i pushed to two servers with different branches.<p>also repo on github should have by default<p>`git push github main` OR `git push gh main`<p>git push <origin> main