search

Home  >  Q&A  >  body text

git - How to set the local master to submit code to the remote dev by default?

Now I want my local master to track the remote kislev-dev branch.
My approach is git branch --set-upstream master origin/kislev-dev, but this still doesn’t seem to work, every time When pushing, I have to write a long string like git push origin master. Can I configure it as git push to push directly to the remote kislev-dev?

阿神阿神2813 days ago638

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:32:54

    It is recommended to use graphical tools to understand how git works, and then read the relevant tutorials!

    Under Mac: smartgit
    windows: little turtle
    Documentation: git official website (available in Chinese) or Liao Xuefeng’s blog

    Your problem should be modified by modifying the local or global gitconfig! It’s a mobile phone code. I’ll give you the code when I get back

    reply
    0
  • Cancelreply