From ee97892a0922715af7f39682ad5f99aae7b1b456 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 11 Jun 2016 11:05:13 +0200 Subject: [PATCH] Starting a page with useful Git commands --- Useful-Git-commands.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Useful-Git-commands.md diff --git a/Useful-Git-commands.md b/Useful-Git-commands.md new file mode 100644 index 0000000..8fd94d1 --- /dev/null +++ b/Useful-Git-commands.md @@ -0,0 +1,16 @@ +### Branches +* list all branches (incl. remotes) + +> `git branch -a` +> +> * master +> +> remotes/origin/14.2 + +* switch to a branch you never checked out before, eg. above 14.2, and set up tracking + +> `git branch --track origin/` + +* switch to branch existing on your local repo + +> `git checkout ` \ No newline at end of file