<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Creating a new branch on a remote repo from loco rep]]></title><description><![CDATA[<p dir="auto">I have a remote GitLab repo my-project that contains 2 branches master and dev. And I learn it from <a href="https://webhostingprime.com/gitlab-vs-github/" target="_blank" rel="noopener noreferrer nofollow ugc">GitLab vs GitHub</a> has a directory on my local machine named also my-project that I was developing some code in it and it has more or less the same structure as the remote repo. What I want to do is:</p>
<ul>
<li>initialize the directory as a git repo (which I already did)</li>
<li>connect the initialized local repo somehow to the remote one.</li>
<li>Then create a branch based on the structure of the master branch of the remote repo (without losing any files on the local repo).</li>
<li>finally, push the code in the local repo to the newly created branch in the new repo.</li>
</ul>
<p dir="auto">what I have done so far is:</p>
<pre><code>cd my-project
git init
git fetch
git checkout -b new_dev_branch
git add .
git commit -m "first trial"
git remote add origin path/to/remote/gitlab/my-project.git
git push -u origin new_dev_branch
</code></pre>
<p dir="auto">But the problem is that it didn't create the branch with the structure of the master as I wanted in step 3.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.cloudron.io/topic/5740/creating-a-new-branch-on-a-remote-repo-from-loco-rep</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:09:59 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5740.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Sep 2021 14:44:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creating a new branch on a remote repo from loco rep on Mon, 04 Oct 2021 16:19:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cloudytech147" aria-label="Profile: cloudytech147">@<bdi>cloudytech147</bdi></a> you can probably try the GitLab forum - <a href="https://forum.gitlab.com/" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.gitlab.com/</a> . This forum is for the Cloudron's GitLab package.</p>
]]></description><link>https://forum.cloudron.io/post/37213</link><guid isPermaLink="true">https://forum.cloudron.io/post/37213</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 04 Oct 2021 16:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a new branch on a remote repo from loco rep on Mon, 04 Oct 2021 07:25:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cloudytech147" aria-label="Profile: cloudytech147">@<bdi>cloudytech147</bdi></a> happens to the best <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /><br />
But you could checkout Cloudron anyway <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forum.cloudron.io/post/37198</link><guid isPermaLink="true">https://forum.cloudron.io/post/37198</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Mon, 04 Oct 2021 07:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a new branch on a remote repo from loco rep on Mon, 04 Oct 2021 05:18:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> sorry I thought it is related to this forum</p>
]]></description><link>https://forum.cloudron.io/post/37192</link><guid isPermaLink="true">https://forum.cloudron.io/post/37192</guid><dc:creator><![CDATA[cloudytech147]]></dc:creator><pubDate>Mon, 04 Oct 2021 05:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a new branch on a remote repo from loco rep on Thu, 30 Sep 2021 18:19:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cloudytech147" aria-label="Profile: cloudytech147">@<bdi>cloudytech147</bdi></a> this seems suspiciously like spam... Is this question somehow Cloudron related? I will delete this topic in a day or two, if I don't see a response.</p>
]]></description><link>https://forum.cloudron.io/post/37088</link><guid isPermaLink="true">https://forum.cloudron.io/post/37088</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 30 Sep 2021 18:19:27 GMT</pubDate></item></channel></rss>