Hello everybody!
In this post, I will explain what is normally done and what are the commands to apply when making a change and register it in our projects.
The workflow since working on a project in local, is basically done with these essential commands:
$ git add nameFile
Once we have our project and we are rubbing, and we want to register some change the first thing we do is to execute the command git add nameFile this command adds us the file given in the staging area or preparation area of which we already spoke in a post previously.
Another option is to run git add . which makes the (.) Is to tell git to add me all the files that are with some change made.
$ git commit -m "message"
After we have the files in the staging area, and we want to publish to our repository, what we do is execute this command git commit -m 'message `where we can put a descriptive message regarding the changes that were made and go to be registered in the repository.
Whenever you make some important changes it is necessary to take this workflow so that our changes are correctly registered in git.
$ git status
This command is not necessary, but I consider it very important. since it allows me to see the current state of my files and in what area they are, I can see what changes I have pending to publish to the repository, as well as those that I have pending to upload to the staging area.
Well these commands are very important and I hope they take them into account
Regards!