I need to switch to a local brach master to a github branch feature/ABF-3-project-structure
I run the below command.
git pull feature/ABF-3-project-structure
Please help me out. I have tried for at least 3 hours but still no luck
Thanks, Enamul
我不确定我是否理解您的问题,但是可以使用以下代码来切换到上述分支: git checkout feature/ABF-3-project-structure
。
Try this:
git pull {repo} {remotebranchname}:{localbranchname}
git pull origin abc:abc
In case when you are on the master branch you also should first checkout a branch:
git checkout -b abc
this should create new branch "abc" from the master and directly check it out. than you should run:
git pull origin abc
to pull the new branch to your local abc branch
I have solved this problem by adding ssh key to github. I previously working on git with out setting ssh key on github.
It's very simple. I just added the ssh key and run the previous commands. That solves my problem. :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.