From 763f8ccaa695250daab49b86d4a016b1951539ae Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Thu, 2 Nov 2017 08:07:09 +0100 Subject: [PATCH] Add git stuff --- src/SUMMARY.md | 4 +++- src/dev/tools/git.md | 15 +++++++++++++++ src/dev/tools/main.md | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/dev/tools/git.md create mode 100644 src/dev/tools/main.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index b6a454b..320b962 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -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) \ No newline at end of file + - [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md) + - [Tools](./dev/tools/main.md) + - [Git](./dev/tools/git.md) diff --git a/src/dev/tools/git.md b/src/dev/tools/git.md new file mode 100644 index 0000000..fea50da --- /dev/null +++ b/src/dev/tools/git.md @@ -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 +``` diff --git a/src/dev/tools/main.md b/src/dev/tools/main.md new file mode 100644 index 0000000..40986fa --- /dev/null +++ b/src/dev/tools/main.md @@ -0,0 +1 @@ +# Tools