<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cameron Ernest</title>
    <description>The latest articles on DEV Community by Cameron Ernest (@camernest).</description>
    <link>https://dev.to/camernest</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F809278%2F7c106165-1daf-44c1-82a1-e88ac4b0c1d6.png</url>
      <title>DEV Community: Cameron Ernest</title>
      <link>https://dev.to/camernest</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/camernest"/>
    <language>en</language>
    <item>
      <title>Connecting Sourcetree with Github on Windows</title>
      <dc:creator>Cameron Ernest</dc:creator>
      <pubDate>Sun, 06 Feb 2022 01:50:01 +0000</pubDate>
      <link>https://dev.to/camernest/connecting-sourcetree-with-github-on-windows-4cgl</link>
      <guid>https://dev.to/camernest/connecting-sourcetree-with-github-on-windows-4cgl</guid>
      <description>&lt;h1&gt;
  
  
  Getting Started with Sourcetree
&lt;/h1&gt;

&lt;p&gt;You can download Sourcetree&lt;/p&gt;

&lt;h1&gt;
  
  
  Creating Personal Access Tokens in Github
&lt;/h1&gt;

&lt;p&gt;You need to create a Personal Access Token in Github which will be used to for authentication purposes&lt;/p&gt;

&lt;h1&gt;
  
  
  Git installation
&lt;/h1&gt;

&lt;p&gt;Once you download Git for Windows, and complete the installation, the git bash window appears.&lt;/p&gt;

&lt;h3&gt;
  
  
  Removing the remote origin link
&lt;/h3&gt;

&lt;p&gt;Navigate to the folder where the local repository exits.&lt;/p&gt;

&lt;p&gt;Then enter the following command to make sure no existing remote origin link exists&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote remove origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once confirmed, the PAT created should be mentioned for the appropriate repository&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin https://&amp;lt;personal-access-token&amp;gt;@github.com/&amp;lt;my-repo&amp;gt;.git&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For eg:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin https://ghp_2B1FRo1HQRAoevdp3oMEa34PQVuuDX5LYk1f@github.com/johndoe/myrepo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After successful completion, you should be able to push the changes from Sourcetree to Github.&lt;/p&gt;

&lt;p&gt;P.S: There is a lot more information that needs to be added. I just wanted to make my first post, so here it is! I will be editing it further and add the required information and complete it fully. Thank you.&lt;/p&gt;

</description>
      <category>github</category>
      <category>sourcetree</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
