Day 7: Git Zero To Hero ๐Ÿš€

ยท

2 min read


Carry Minati Toh Kaise Hai Aap Log GIF - Carry Minati Toh Kaise Hai Aap Log  How Are You - Discover & Share GIFs

Let's Create GIT Repo ๐Ÿ“Œ

Today we will discuss the most important initial steps for creating a git repo:/

  1. Create index.html

     <!DOCTYPE html>
     <html lang="en">
     <head>
         <meta charset="UTF-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge">
         <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <title>Umang Pincha</title>
     </head>
     <body>
         <h1>Umang Pincha</h1> <hr>
     </body>
     </html>
    

    As u have started the project by writing your index.html, from starting only u want your project to be traced then u have to initialize it as a git repo and then execute the below command which will create a hidden .git file inside your folder.

     git init
    

    Just recall my previous blog on 3 stage git architecture , the above step is a first step i.e Working Directory. ๐Ÿ˜„

  2. At this point we can start on shooting git commands as we have to save our modified file. i.e staging area

     git add file_name  
     git add .
     #here . means all
    
  3. Finally, in the last step to save the current version we have to commit it with a certain message. Committing will create a snapshot/screenshot of your project.

     git commit -m "initial commit"
    

    Next Blog Teaser ๐Ÿ˜„

    Tracking your project ๐Ÿคฉ

    Rahul Gandhi Khatam GIF - Rahul Gandhi Rahul Khatam - Discover & Share GIFs

    Thanks for reading ๐Ÿ™๐Ÿงก

ย