brain/src/dev/tools/git.md

16 lines
269 B
Markdown
Raw Normal View History

2017-11-02 07:07:09 +00:00
# Git
2017-11-03 10:32:19 +00:00
## Fetch a remote branch
2017-11-02 07:07:09 +00:00
- 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
```