16 lines
268 B
Markdown
16 lines
268 B
Markdown
![]() |
# Git
|
||
|
|
||
|
# Fetch a remote branch
|
||
|
|
||
|
- Create a local branch that tracks a remote branch
|
||
|
|
||
|
```shell
|
||
|
git checkout --track origin/develop
|
||
|
```
|
||
|
|
||
|
If you want to change the name of the local branch (_NOT A GOOD IDEA_)
|
||
|
|
||
|
```shell
|
||
|
git checkout --track -b gniagnia origin/develop
|
||
|
```
|