<?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: Gajjela Kiran Kumar</title>
    <description>The latest articles on DEV Community by Gajjela Kiran Kumar (@kirang193).</description>
    <link>https://dev.to/kirang193</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%2F1047237%2F18bf85f2-ec10-4355-a369-fa7ca3bb88f6.jpeg</url>
      <title>DEV Community: Gajjela Kiran Kumar</title>
      <link>https://dev.to/kirang193</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kirang193"/>
    <language>en</language>
    <item>
      <title>GIT INIT...</title>
      <dc:creator>Gajjela Kiran Kumar</dc:creator>
      <pubDate>Fri, 17 Mar 2023 18:56:32 +0000</pubDate>
      <link>https://dev.to/kirang193/git-init-37l3</link>
      <guid>https://dev.to/kirang193/git-init-37l3</guid>
      <description>&lt;p&gt;Today, let's learn how to get started with github from scratch 🤔.&lt;br&gt;
Run the command in your ubuntu terminal.&lt;br&gt;
&lt;code&gt;sudo apt-get install git&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Open github account from your browser. Sign in. Create a new repo. &lt;br&gt;
Copy the https url. &lt;br&gt;
&lt;code&gt;Ex:(https://github.com/&amp;lt;user-name&amp;gt;/&amp;lt;repo-name&amp;gt;.git)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Go to the directory in which the file/folder that you wish to upload  is located. &lt;br&gt;
Run &lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
Run &lt;code&gt;git remote add origin &amp;lt;url(one you copied)&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;em&gt;This command creates a new connection to your repo.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"origin" is the name of the connection established.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also change the name of the connection to anything you want. Suppose I like cricket, so I may add &lt;br&gt;
&lt;code&gt;git remote add cricket &amp;lt;link to repo&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To check established connections(fetch/push). We can use &lt;code&gt;git remote -v&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, you can add files to stage. They will reflect in your status later. You can do it by &lt;code&gt;git add &amp;lt;file-name&amp;gt;&lt;/code&gt;. To add multiple files, &lt;code&gt;git add &amp;lt;file1&amp;gt; &amp;lt;file2&amp;gt; ... &amp;lt;filen&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Confirm your changes with &lt;code&gt;git status&lt;/code&gt; command.&lt;br&gt;
Commit changes &lt;code&gt;git commit -m "&amp;lt;your commit msg&amp;gt;"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Push commits &lt;code&gt;git push origin master&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Enter your github username, as asked in the prompt&lt;br&gt;
Enter your github password (❁´◡`❁).&lt;/p&gt;

&lt;p&gt;Well! As guessed, it doesn't work...&lt;br&gt;
Now, as github stopped accepting passwords, we need to use Personal Access Token(PAN) as password. &lt;br&gt;
To get your PAN, go to github account &amp;gt; Settings &amp;gt; Developer Settings &amp;gt; PAN &amp;gt; Tokens(Classic) &amp;gt; Generate new token &amp;gt; (Give a note. Allow all applicable checks that you need with a desired expiration period)&amp;gt; Click on generate token.&lt;br&gt;
Copy your 🍳. Use it as your password for future as well.&lt;/p&gt;

&lt;p&gt;You're done. Cheers!!&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EpxvEb32--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zgpdfqdtwqzvzvjvzce.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EpxvEb32--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zgpdfqdtwqzvzvjvzce.png" alt="Image description" width="512" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>beginners</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
