Add git stuff

This commit is contained in:
Wilfried OLLIVIER 2017-11-02 08:07:09 +01:00
parent 3f6e8e07f5
commit 763f8ccaa6
3 changed files with 19 additions and 1 deletions

View file

@ -5,4 +5,6 @@
- [Dev](./dev/main.md)
- [Web](./dev/web/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
View 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
View file

@ -0,0 +1 @@
# Tools