Add git stuff
This commit is contained in:
parent
3f6e8e07f5
commit
763f8ccaa6
3 changed files with 19 additions and 1 deletions
|
@ -5,4 +5,6 @@
|
||||||
- [Dev](./dev/main.md)
|
- [Dev](./dev/main.md)
|
||||||
- [Web](./dev/web/main.md)
|
- [Web](./dev/web/main.md)
|
||||||
- [front](./dev/web/front/main.md)
|
- [front](./dev/web/front/main.md)
|
||||||
- [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)
|
- [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)
|
||||||
|
- [Tools](./dev/tools/main.md)
|
||||||
|
- [Git](./dev/tools/git.md)
|
||||||
|
|
15
src/dev/tools/git.md
Normal file
15
src/dev/tools/git.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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
|
||||||
|
```
|
1
src/dev/tools/main.md
Normal file
1
src/dev/tools/main.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Tools
|
Loading…
Reference in a new issue