Git tutorial #6 - Git workflow

in #tutorials8 years ago (edited)

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!

Sort:  

Este Post ha recibido un Upvote desde la cuenta del King: @dineroconopcion, El cual es un Grupo de Soporte mantenido por 5 personas mas que quieren ayudarte a llegar hacer un Top Autor En Steemit sin tener que invertir en Steem Power. Te Gustaria Ser Parte De Este Projecto?

This Post has been Upvote from the King's Account: @dineroconopcion, It's a Support Group by 5 other people that want to help you be a Top Steemit Author without having to invest into Steem Power. Would You Like To Be Part of this Project?

Congratulations @juanpchica! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Also 'git diff' is a very important one. Cool.

Yeah, i'll explain git diff, in some days, thanks for comment

Thanks. I'm starting to use git now.