We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我们每次使用命令git clone https://github.com/marijnh/Eloquent-JavaScript.git或者通过Webstorm git clone 默认会把远程仓库整个给clone下来,但只会在本地默认创建一个master分支。如果最新的代码版本或者我们需要的代码版本不在 master 分支上,该如何获取非 master 分支的代码?
git clone https://github.com/marijnh/Eloquent-JavaScript.git
Webstorm
git clone
clone
master
如果代码已经 clone 到本地,那么直接在本地代码文件夹路径下使用命令
git branch -r #查看远程分支
或
git branch -a #查看所有分支
成功切换到3rd分支
3rd
The text was updated successfully, but these errors were encountered:
zhuangyin8
No branches or pull requests
我们每次使用命令
git clone https://github.com/marijnh/Eloquent-JavaScript.git
或者通过Webstorm
git clone
默认会把远程仓库整个给clone
下来,但只会在本地默认创建一个master
分支。如果最新的代码版本或者我们需要的代码版本不在master
分支上,该如何获取非 master 分支的代码?解决方法
如果代码已经
clone
到本地,那么直接在本地代码文件夹路径下使用命令git branch -r #查看远程分支
或
git branch -a #查看所有分支
成功切换到
3rd
分支The text was updated successfully, but these errors were encountered: