brain/src/dev/tools/git.md

22 lines
355 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
```
2017-11-03 10:32:36 +00:00
## Ammend without editing commit message
```shell
git commit --ammend --no-edit
```