{"absolute_url": "/jbmckee/create-branch/", "blog_post": false, "code": "git checkout -b [name_of_your_new_branch]\ngit push -u ascend [name_of_your_new_branch]\nNo Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2020-05-11T16:30:36.495553", "description": "", "description_rendered": "", "embed_url": "https://snipt.net/embed/0c2c73ce066fea216bf19f062b6b8433/", "full_absolute_url": "/jbmckee/create-branch/", "id": 110, "lexer": "text", "line_count": 3, "log_entries": [{"code": "git checkout -b [name_of_your_new_branch]\ngit push origin [name_of_your_new_branch]\n", "created": "2020-05-11T16:30:36.679732", "diff": "--- \n+++ \n@@ -0,0 +1,2 @@\n+git checkout -b [name_of_your_new_branch]\n+git push origin [name_of_your_new_branch]\n", "user": "jbmckee"}, {"code": "git checkout -b [name_of_your_new_branch]\ngit push origin [name_of_your_new_branch]\ngit branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2020-05-11T16:33:17.525422", "diff": "--- \n+++ \n@@ -1,2 +1,3 @@\n git checkout -b [name_of_your_new_branch]\n git push origin [name_of_your_new_branch]\n+git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "user": "jbmckee"}, {"code": "git checkout -b [name_of_your_new_branch]\ngit push -u origin [name_of_your_new_branch]\nNo Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2020-11-23T18:19:46.915786", "diff": "--- \n+++ \n@@ -1,3 +1,3 @@\n git checkout -b [name_of_your_new_branch]\n-git push origin [name_of_your_new_branch]\n-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]\n+No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "user": "jbmckee"}, {"code": "git checkout -b [name_of_your_new_branch]\ngit push -u ascend [name_of_your_new_branch]\nNo Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2021-07-23T13:57:25.756211", "diff": "--- \n+++ \n@@ -1,3 +1,3 @@\n git checkout -b [name_of_your_new_branch]\n-git push -u origin [name_of_your_new_branch]\n+git push -u ascend [name_of_your_new_branch]\n No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "user": "jbmckee"}, {"code": "git checkout -b [name_of_your_new_branch]\ngit push -u origin [name_of_your_new_branch]\nNo Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2022-09-14T15:16:19.845279", "diff": "--- \n+++ \n@@ -1,3 +1,3 @@\n git checkout -b [name_of_your_new_branch]\n-git push -u ascend [name_of_your_new_branch]\n+git push -u origin [name_of_your_new_branch]\n No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "user": "jbmckee"}, {"code": "git checkout -b [name_of_your_new_branch]\ngit push -u ascend [name_of_your_new_branch]\nNo Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "created": "2022-10-06T19:42:52.977686", "diff": "--- \n+++ \n@@ -1,3 +1,3 @@\n git checkout -b [name_of_your_new_branch]\n-git push -u origin [name_of_your_new_branch]\n+git push -u ascend [name_of_your_new_branch]\n No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]", "user": "jbmckee"}], "meta": "", "modified": "2026-04-27T10:34:25.058646", "publish_date": "2022-10-06T19:42:52.824310", "raw_url": "/raw/0c2c73ce066fea216bf19f062b6b8433/", "resource_uri": "/api/public/snipt/110/", "slug": "create-branch", "stylized": "<table class=\"highlighttable\"><tr><td class=\"linenos\"><div class=\"linenodiv\"><pre><a href=\"#L-1\">1</a>\n<a href=\"#L-2\">2</a>\n<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]\n</span><span id=\"L-2\"><a name=\"L-2\"></a>git push -u ascend [name_of_your_new_branch]\n</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]\n</span></pre></div>\n</td></tr></table>", "tags": [{"absolute_url": "/public/tag/git/", "id": 17, "name": "git", "resource_uri": "/api/public/tag/17/", "snipts": "/api/public/snipt/?tag=17"}], "title": "Create Branch", "user": {"absolute_url": "/jbmckee/", "email_md5": "f4da96308b6db1b0b19738a7c105d3da", "id": 1, "resource_uri": "/api/public/user/1/", "snipts": "/api/public/snipt/?user=1", "snipts_count": 72, "username": "jbmckee"}}