git - How to set the local master to submit code to the remote dev by default?
阿神
阿神 2017-05-02 09:30:54
0
1
619

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?

阿神
阿神

闭关修行中......

reply all(1)
我想大声告诉你

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template