aboutsummaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authoraheadanswer <82540664+aheadanswer@users.noreply.github.com>2021-04-14 21:56:29 +0200
committerGitHub <noreply@github.com>2021-04-14 21:56:29 +0200
commit3544268d2819c2aab0e4422c2db3b33c1c045ace (patch)
tree6fa3df48eb7206b496e83703895c1e80d7abaa6c /git
parent04cdbd47a779142f7c4be6446a509d2726674ec6 (diff)
downloadmisc-3544268d2819c2aab0e4422c2db3b33c1c045ace.tar.gz
misc-3544268d2819c2aab0e4422c2db3b33c1c045ace.zip
Add checkout -b
Diffstat (limited to 'git')
-rw-r--r--git3
1 files changed, 3 insertions, 0 deletions
diff --git a/git b/git
index 16b8f4f..67c5afe 100644
--- a/git
+++ b/git
@@ -7,6 +7,9 @@ git branch --set-upstream-to=origin/master master
git branch new-branch
git switch new-branch
+
+git checkout -b new-branch
+
git switch master
git merge new-branch