In the Last Chapter we crated a blank it Repository.

Add Files

New we will create a file in our Repository / Folder.

Create home.html file.

<!DOCTYPE html>
<html>
<head>
<title>Home Page!</title>
</head>
<body>

<h1>Hello soronix!</h1>
<p>This is my first file in Git Repository.</p>

</body>
</html>

After added home.php fle you can track the changes in git by running below command.

       > git status

Here In the red colour you can see home.html file is showing in Untracked file.

Add file in git

       > git add home.html

Now if you run git status command it will show new file: home.html in a green colour.

It means home.html file is added in git staging environment.

By Soronix

Leave a Reply

Your email address will not be published. Required fields are marked *