<?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: Tripp</title>
    <description>The latest articles on DEV Community by Tripp (@tripp007).</description>
    <link>https://dev.to/tripp007</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%2F1852330%2F0035352b-a29b-41a2-ae44-8ebc38640987.png</url>
      <title>DEV Community: Tripp</title>
      <link>https://dev.to/tripp007</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tripp007"/>
    <language>en</language>
    <item>
      <title>Simple Git Commands for Beginners</title>
      <dc:creator>Tripp</dc:creator>
      <pubDate>Sun, 28 Jul 2024 21:14:31 +0000</pubDate>
      <link>https://dev.to/tripp007/simple-git-commands-for-beginners-3l5j</link>
      <guid>https://dev.to/tripp007/simple-git-commands-for-beginners-3l5j</guid>
      <description>&lt;p&gt;Here are some simple git commands that helped me to get started with git and github.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git --version&lt;/strong&gt;: This is used to check the version of git currently installed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git init&lt;/strong&gt;: This is used to turn a directory into an empty git repository. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git add "file_name"&lt;/strong&gt;: This is used to add a file to a git index. The files need to be added here before they can be committed to a git repository. To add all the files in a directory, use "&lt;em&gt;git add .&lt;/em&gt;"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git commit -m "commit_message"&lt;/strong&gt;: This is used to record all the changes made to the files in a local repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git status&lt;/strong&gt;: This returns the current status of a git repository, i.e. the current working branch and whether or not there are any changes to commit to it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git config&lt;/strong&gt;: This is used to assign some of the settings and configurations on Git, two of which include user.name and user.email. It is used as thus: &lt;br&gt;
git config user.name "Tripp007"&lt;br&gt;
git config user.email "&lt;a href="mailto:tripp007@gmail.com"&gt;tripp007@gmail.com&lt;/a&gt;" &lt;br&gt;
This assigns the username and email respectively.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git branch branch_name&lt;/strong&gt;: This is used to create a new branch of development. Changes are made on individual branches before implementing them unto the main branch after a thorough review.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git branch&lt;/strong&gt;: This returns a list of all the branches in the repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git checkout branch_name&lt;/strong&gt;: This switches the user from the current branch to the specified branch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git merge branch_name&lt;/strong&gt;: This merges the specified branch to the main branch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git branch -d branch_name&lt;/strong&gt;: This deletes the specified branch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git remote add origin git_repository_link&lt;/strong&gt;: This is used to connect to a remote repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git clone git_repository_link&lt;/strong&gt;: This downloads a copy of the remote git repository into the directory that is currently opened in the terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git pull origin main&lt;/strong&gt;: This is used to pull all the changes made in the remote repository into the local one. It must be done after the remote repository has been connected.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git push origin main&lt;/strong&gt;: This is used to push all the changes made in the local repository into the remote one.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are the ones that I found the most useful. If I made any mistakes, please notify me and I will make the correction. Thank you for reading.&lt;/p&gt;

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