git - 如何设置本地master默认往远程的dev提交代码?
阿神
阿神 2017-05-02 09:30:54
0
1
567

我现在想让我本地的master追踪远程的kislev-dev分支,
我的做法的git branch --set-upstream master origin/kislev-dev,但是这样貌似还是不生效啊,每次push的时候还得git push origin master 这样写一大串,能不能配置成git push 这样直接push到远程的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
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!