snipt

Ctrl+h for KB shortcuts

Text only

Create Branch

1
2
3
git checkout -b [name_of_your_new_branch]
git push -u ascend [name_of_your_new_branch]
No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
https://snipt.net/embed/0c2c73ce066fea216bf19f062b6b8433/
/raw/0c2c73ce066fea216bf19f062b6b8433/
0c2c73ce066fea216bf19f062b6b8433
text
Text only
3
2024-05-19T22:34:33
True
False
False
Oct 06, 2022 at 07:42 PM
/api/public/snipt/110/
create-branch
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>git checkout -b [name_of_your_new_branch] </span><span id="L-2"><a name="L-2"></a>git push -u ascend [name_of_your_new_branch] </span><span id="L-3"><a name="L-3"></a>No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch] </span></pre></div> </td></tr></table>
git
1
2
3
4
5
6
7
--- 
+++ 
@@ -1,3 +1,3 @@
 git checkout -b [name_of_your_new_branch]
-git push -u origin [name_of_your_new_branch]
+git push -u ascend [name_of_your_new_branch]
 No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
1
2
3
4
5
6
7
--- 
+++ 
@@ -1,3 +1,3 @@
 git checkout -b [name_of_your_new_branch]
-git push -u ascend [name_of_your_new_branch]
+git push -u origin [name_of_your_new_branch]
 No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
1
2
3
4
5
6
7
--- 
+++ 
@@ -1,3 +1,3 @@
 git checkout -b [name_of_your_new_branch]
-git push -u origin [name_of_your_new_branch]
+git push -u ascend [name_of_your_new_branch]
 No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
1
2
3
4
5
6
7
--- 
+++ 
@@ -1,3 +1,3 @@
 git checkout -b [name_of_your_new_branch]
-git push origin [name_of_your_new_branch]
-git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]+git push -u origin [name_of_your_new_branch]
+No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
1
2
3
4
5
6
--- 
+++ 
@@ -1,2 +1,3 @@
 git checkout -b [name_of_your_new_branch]
 git push origin [name_of_your_new_branch]
+git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
1
2
3
4
5
--- 
+++ 
@@ -0,0 +1,2 @@
+git checkout -b [name_of_your_new_branch]
+git push origin [name_of_your_new_branch]