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