git remote add multiple push point

Submitted by lepton on Fri, 05/24/2019 - 11:46

$ git remote add xxx

# push master to xxx

$ git push xxx master

# Push my-branch to xxx and set it to track xxx/my-branch

$ git push -u xxx my-branch

# Make some existing branch track xxx instead of origin

$ git branch --set-upstream other-branch xxx/other-branch

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.