Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私たちの git サーバーはローカルになりますが、ローカル リポジトリもオンラインに保たれているサーバーが必要ですpush。
push
どうすればそれができますか?
でリモートを追加できますgit remote add <name> <url>
git remote add <name> <url>
その後、リモートgit push <name> master:masterにプッシュして、ローカルのマスター ブランチをリモートのマスター ブランチにプッシュできます。
git push <name> master:master
git cloneリモートでレポを作成すると名前が付けられますが、オンラインサーバー用のレポジトリをorigin作成してプッシュすることができますpublicgit push public master:master
git clone
origin
public
git push public master:master