<?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: Yusuf</title>
    <description>The latest articles on DEV Community by Yusuf (@yusufalp).</description>
    <link>https://dev.to/yusufalp</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%2F571765%2Fcbaa0d67-88cb-4123-825e-5d533913b838.png</url>
      <title>DEV Community: Yusuf</title>
      <link>https://dev.to/yusufalp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yusufalp"/>
    <language>en</language>
    <item>
      <title>Common Programming Case Types</title>
      <dc:creator>Yusuf</dc:creator>
      <pubDate>Sun, 18 Dec 2022 05:07:29 +0000</pubDate>
      <link>https://dev.to/yusufalp/common-programming-case-types-2ec</link>
      <guid>https://dev.to/yusufalp/common-programming-case-types-2ec</guid>
      <description>&lt;p&gt;When you are working with computers, especially coding, you have to follow some set of rules to get your ideas working. In some other times, you are on your own to create your flow. However, since this work is a teamwork and chances are that someone else is reading your code, or you are reading someone else's code, there came in some conventions to follow. &lt;/p&gt;

&lt;p&gt;One of the most important conventions to follow is when naming a variable. Everybody who has done coding knows that it is really not that easy to come up with a variable name, but there are conventions to follow when it comes to Case Types. Here is a list of most common Case Types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Camel Case&lt;/li&gt;
&lt;li&gt;Kebab Case&lt;/li&gt;
&lt;li&gt;Snake Case&lt;/li&gt;
&lt;li&gt;Pascal Case&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's see each one of these in a bit more detail.&lt;/p&gt;

&lt;p&gt;Note: We are not talking about how meaningful or long (or short) enough your variable needs to be, just simply learning about what different Case Types are.&lt;/p&gt;

&lt;h2&gt;
  
  
  Camel Case
&lt;/h2&gt;

&lt;p&gt;This is when the variable name starts with a lowercase character and every subsequent word's first letter is capitalized.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;thisIsAnExampleForACamelCase&lt;/code&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Kebab Case
&lt;/h2&gt;

&lt;p&gt;This is one of the easiest one to remember. Every character is lowercase and in between every word, you need to add a dash (&lt;code&gt;-&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;this-is-an-example-for-a-kebab-case&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Snake Case
&lt;/h2&gt;

&lt;p&gt;This one is very similar to Kebab Case. Every character is lowercase and in between every word, you need to add an underscore (&lt;code&gt;_&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;this_is_an_example_for_a_snake_case&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Pascal Case
&lt;/h2&gt;

&lt;p&gt;This one is when first letter of all words are capitalized, including the first letter and there is no space or any other character in between words.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ThisIsAnExampleForAPascalCase&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to use in JavaScript
&lt;/h2&gt;

&lt;p&gt;Again, naming is a convention. However, I'm going to share some examples from &lt;a href="https://github.com/airbnb/javascript#airbnb-javascript-style-guide-" rel="noopener noreferrer"&gt;Airbnb JavaScript Style Guide&lt;/a&gt; . According to that guide, here are what to use in JavaScript:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid single letter names like &lt;code&gt;x&lt;/code&gt; or &lt;code&gt;q&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;camelCase&lt;/code&gt; for objects, functions, and instances&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PascalCase&lt;/code&gt; for constructors or classes&lt;/li&gt;
&lt;li&gt;Do not use trailing or leading underscores like &lt;code&gt;_firstName&lt;/code&gt;, &lt;code&gt;lastName_&lt;/code&gt; or &lt;code&gt;_fullName_&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Acronyms and initialisms should always be all uppercased, or all lowercased like &lt;code&gt;HTTPRequest&lt;/code&gt; or &lt;code&gt;httpRequest&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>discuss</category>
      <category>security</category>
      <category>tooling</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Introduction to Git with HTML and CSS</title>
      <dc:creator>Yusuf</dc:creator>
      <pubDate>Tue, 26 Jul 2022 04:37:58 +0000</pubDate>
      <link>https://dev.to/yusufalp/introduction-to-git-with-html-and-css-1b96</link>
      <guid>https://dev.to/yusufalp/introduction-to-git-with-html-and-css-1b96</guid>
      <description>&lt;p&gt;Git is a version control system. As of writing this article, it is the most commonly used one among developers. With Git, you can track changes made to your files, see all the history and revert back to a specific change if things go unexpectedly. It is also great for collaboration with others.&lt;/p&gt;

&lt;p&gt;Let's dive in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up your Git first
&lt;/h2&gt;

&lt;p&gt;For this exercise, we are going to build a simple form with HTML and then style it a little bit with CSS. Then using Git, we will save the versions of the files.&lt;/p&gt;

&lt;p&gt;Let's create a folder on the desktop and name it &lt;code&gt;simple-form&lt;/code&gt;.  &lt;/p&gt;

&lt;p&gt;After that we will run our terminal and change directory into this new folder.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

cd Desktop/simple-form/


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;(You have to indicate the path you created your folder at.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft6vc8h5jqe01ofkk4far.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft6vc8h5jqe01ofkk4far.png" alt="Changing the directory on a terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then we will initiate Git. This will be our first Git command. We will run this specific command only once to initialize the Git on this folder (and any sub folders and files)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git init


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faz0ma4dzq9wawsza68sd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faz0ma4dzq9wawsza68sd.png" alt="Run git command git init"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We see a message that says "Initialized empty Git repository in..." which is the expected response. &lt;/p&gt;

&lt;h2&gt;
  
  
  Your first commit, tracking files
&lt;/h2&gt;

&lt;p&gt;We will open VSCode and start creating the files. If you are using it for the first time, you will see the welcome screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4v1r6w52841eiq1bct8r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4v1r6w52841eiq1bct8r.png" alt="Welcome screen of VSCode"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's click on "Add Folder" and select the folder "simple-form".&lt;/p&gt;

&lt;p&gt;Once the folder is open, we can create a new file and name it &lt;code&gt;index.html&lt;/code&gt;. Then let's create another file and name it &lt;code&gt;style.css&lt;/code&gt;. We will first commit these empty files so we can start keeping track of them with Git. After that we will start coding and then keep track of those changes too.&lt;/p&gt;

&lt;p&gt;The commands we are going to use are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;git status&lt;/li&gt;
&lt;li&gt;git add&lt;/li&gt;
&lt;li&gt;git commit&lt;/li&gt;
&lt;li&gt;git log&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  git status
&lt;/h3&gt;

&lt;p&gt;In your terminal, let's run the command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git status


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We see there is a response with quite useful information given:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi5ztc5wt10rqd0lj48cb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi5ztc5wt10rqd0lj48cb.png" alt="Run git command git status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's start with "No commits yet". This means we have not made any commits yet in this branch. The following message indicates that there are untracked files which means there are new files that we did not let Git know about. You will see some file names in red color. That means Git have no idea about what is going on in these files. &lt;br&gt;
Lastly, the message "nothing added to commit but untracked files present (use "git add" to track)". That is exactly what we are going to do.&lt;/p&gt;

&lt;h3&gt;
  
  
  git add
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git add .


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command produces no response, which is good. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgw5bhgao1l4uc627dkaf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgw5bhgao1l4uc627dkaf.png" alt="Run git command git add ."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This &lt;code&gt;git add&lt;/code&gt; command adds the files indicated to the stage area. The dot is a shortcut for all files. You can either specify file names that you want to add i.e &lt;code&gt;git add index.html&lt;/code&gt; or if you want to add all files together you can use the dot like we did. &lt;br&gt;
What does adding files to stage mean? It means these files are prepared to be committed. Git can track and follow changes only if the files are committed. To be able to commit files, we need to at them to the stage with &lt;code&gt;git add&lt;/code&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  git commit
&lt;/h3&gt;

&lt;p&gt;Last step is to use the command &lt;code&gt;git commit&lt;/code&gt;. This command is usually used with a message where you can indicate the change happened with a brief description. In our example, we just created our files. So we can simply run the command with the message "create html and css files". &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git commit -m "create html and css files"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdh81j2qjsums2pueea6i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdh81j2qjsums2pueea6i.png" alt="Run git command git commit"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My message is what is inside the quotation mark. This message will be associated with the commit so that I can find the commit easily if I need to later on. This is a human readable text and it should tell you briefly about what you did in that commit. &lt;/p&gt;

&lt;p&gt;We are actually done with Git tracking our files and changes. Every time we make a change, we will follow the same steps and update our new changes. So let's code some actual stuff and track those changes too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start coding the form
&lt;/h2&gt;

&lt;p&gt;Let's add a boilerplate to the &lt;code&gt;index.html&lt;/code&gt; file&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;title&amp;gt;Document&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We can change the title of the document to &lt;code&gt;Simple Form&lt;/code&gt;.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&amp;lt;head&amp;gt;
  ...
  &amp;lt;title&amp;gt;Simple Form&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then we will start building the form.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&amp;lt;body&amp;gt;
  &amp;lt;form&amp;gt;
    &amp;lt;label for="first"&amp;gt;First Name&amp;lt;/label&amp;gt;
    &amp;lt;input type="text" name="first" id="first"&amp;gt;
    &amp;lt;label for="last"&amp;gt;Last Name&amp;lt;/label&amp;gt;
    &amp;lt;input type="text" name="last" id="last"&amp;gt;
    &amp;lt;label for="email"&amp;gt;Email&amp;lt;/label&amp;gt;
    &amp;lt;input type="email" name="email" id="email"&amp;gt;
    &amp;lt;button type="submit"&amp;gt;Submit&amp;lt;/button&amp;gt;
  &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;For now, it will be a simple form that asks for a first name, last name and an email with a button to submit. You should have a site like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F966z6o4y5ml3jptf383a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F966z6o4y5ml3jptf383a.png" alt="Initial state of the form"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's start with a simple styling. But before, in the index file, let's connect our &lt;code&gt;style&lt;/code&gt; file to the &lt;code&gt;index&lt;/code&gt; file. In the meta tag, add the following &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&amp;lt;head&amp;gt;
  ...
  &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
  ...
&amp;lt;/head&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Let's add some styling to our form, labels, inputs and the button.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

form {
  max-width: 980px;
  min-width: 320px;
}

label {
  text-transform: uppercase;
}

input {
  box-sizing: border-box;
  display: block;
  width: 60%;
  margin-bottom: 18px;
}

button {
  background-color: #1da1f2;
  border: none;
  border-radius: 10px;
  color: #f5f8fa;
  width: 60%;
  padding: 6px;
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;OK, the end results should look like this. This is good enough for a simple form.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg3xy7ok6j3czu8lyw4ox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg3xy7ok6j3czu8lyw4ox.png" alt="Styled form document"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's commit them using Git again. &lt;/p&gt;

&lt;p&gt;First, &lt;code&gt;git status&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkkse9qyk0e21rcsvc06g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkkse9qyk0e21rcsvc06g.png" alt="Run git command git status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This time we see a different message than the first time we ran &lt;code&gt;git status&lt;/code&gt;. That is because Git is now able to track these files. What it is saying right now is that there are "changes that is not staged to commit" yet.&lt;br&gt;
Let's add them one at a time this time, using &lt;code&gt;git add&lt;/code&gt;.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git add index.html
git status


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We know that a successful &lt;code&gt;git add&lt;/code&gt; does not produce any response. But we can still use &lt;code&gt;git status&lt;/code&gt; to see what happened.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feoy2h4zvtdhcsd56ta6b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feoy2h4zvtdhcsd56ta6b.png" alt="Run git commands git add index.html and then git status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can see from the new message that &lt;code&gt;index.html&lt;/code&gt; file is listed under changes to be committed section and its color is green, indicating that we can use &lt;code&gt;git commit&lt;/code&gt; and it will commit the &lt;code&gt;index.html&lt;/code&gt; file only. It is important to add a message to our commit too. Let's do that.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git commit -m "add form with three fields and a submit button"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Our commit is successful. We have committed all the changes on the &lt;code&gt;index.html&lt;/code&gt; file and Git is up to date with the latest changes. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff6mv073487przcsv1hzn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff6mv073487przcsv1hzn.png" alt="Run git command git commit with a message"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's use &lt;code&gt;git status&lt;/code&gt; one more time to see what is the current status.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8i4sm0qi7ynde18exvcn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8i4sm0qi7ynde18exvcn.png" alt="Run git command git status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We now only see &lt;code&gt;style.css&lt;/code&gt; file and nothing about &lt;code&gt;index.html&lt;/code&gt; file. That is because there has been no change since the last commit to that file. &lt;/p&gt;

&lt;p&gt;Let's add the style file to the stage and then commit it too so Git is also up to date with &lt;code&gt;style.css&lt;/code&gt; file as well.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git add style.css
git commit -m "style the simple form we built"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1p5kbjlqf9cgxmdgthfv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1p5kbjlqf9cgxmdgthfv.png" alt="Run git command git add style.css then git commit"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can see from the short message that this commit was also successful. We are now done with adding our changes and committing them with Git. &lt;br&gt;
If you do &lt;code&gt;git status&lt;/code&gt; again, you can see that it says "nothing to commit, working tree clean". This means all the files in this folder is up to date with Git and there are no changes made since the last commit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvv5a4w0ycttwt8fk2c6h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvv5a4w0ycttwt8fk2c6h.png" alt="Run git command git status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Bonus: git log
&lt;/h3&gt;

&lt;p&gt;We can see all the commits that has been done in this folder using another command, &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git log


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuki8zro0vx6704766o6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuki8zro0vx6704766o6y.png" alt="Run git command git log"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see a list of every commit made, their SHA code, who made the changes along with their email address, when the changes was and the commit message entered when committing. This command is very useful. There are a lot more to &lt;code&gt;git log&lt;/code&gt; but for now it is great to list the information about all the commits made.&lt;/p&gt;

</description>
      <category>git</category>
      <category>html</category>
      <category>css</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
