GIT - 4.3 First commit
We will continue with our restoration of demonstrations by adding files and checking the status as you go. We start by going back to our project file and then in the test file with CD project orders as this is CD test. Whenever you want to check what's going on in our restitory, you can use the Git Status command. We are preparing for the commit, we can see that we are on the Master branch, nothing has changed because we haven't added anything yet so let's do it, create a file. Do not hesitate you can use the text editor that you have configured with your guest of commands so I will type in a space a cuckoo.html, if I do a ls like this we can the cuckoo.html file with I will add a little text like that H1 cuckoo and a paragraph hi. After saving the text in your cuckoo file Make a Git Status, I get a difference. Git tells me that I am still on the initial committee and that I have not followed files. He also tells me what I have to do which is the Git Add command and the name of the file in our example cuckoo.html This moves the cuckoo file from its location of our work directory to a Git activation area. We will therefore do Git Add cuckoo.html, now that our cuckoo file is in the transit zone we can check with the Git Status command like this. Now Git tells us that we now have changes to engage. This means that the file is in the transit zone the next step to take and therefore commits Git Commit but an example I will use the option -m followed by validation in quotes which will be first test. Although we have a git response he tells me that I have a file and three insertions and gives me an identifier of the Racine Committee. That said we have modified a file which is the file that we created with three insertions then it is found at the guest of order now if I do a git status, but I have nothing more to do that I am in a empty work directory.