Configure a local branch for push to specific branch

前端 未结 2 595
别跟我提以往
别跟我提以往 2020-12-13 21:21

Sorry if this question has been asked already.

Am cloning from a repo named \"git_lab\" which has a branch named \"test\" When cloning i use \"-b myname_test\" to cr

2条回答
  •  情歌与酒
    2020-12-13 21:55

    git checkout --track origin/branchname
    

    Alternatively, you can edit the config file in the .git folder.

提交回复
热议问题