Curso de git #6 - Git workflow

in #tutorial7 years ago (edited)

Hola a todos espero que se encuentren muy bien!

En este pequeño post, les voy a explicar lo que normalmente se hace y cuales son los comandos para aplicar al momento de hacer un cambio y registrarlo en nuestro proyectos.

El flujo de trabajo desde que trabajamos en un proyecto en local, se hace básicamente con estos comandos esenciales:

$ git add nameFile

Una vez tengamos nuestro proyecto y estemos codeando, y deseamos registrar algún cambio lo primero que hacemos es ejecutar el comando git add nameFile este comando nos agrega el archivo dado en el staging area o area de preparación de la cual ya hablamos en un post anteriormente.

Otra opción es ejecutar git add . lo que hace el (.) es decirle a git que me agregue todos los archivos que estén con algún cambio realizado.

$ git commit -m "message"

Luego de que tengamos los archivos en el staging area, y queremos publicar a nuestro repositorio, lo que hacemos es ejecutar este comando git commit -m "mensaje" en donde podemos poner un mensaje descriptivo referente a los cambios que se hicieron y van a quedar registrados en el repositorio.

Siempre que se hace algún cambio importante es necesario llevar este flujo de trabajo para que nuestros cambios queden correctamente registrados en git.

$ git status

Este comando no es necesario, pero lo considero muy importante. ya que me permite ver el estado actual de mis archivos y en que area se encuentran, puedo ver que cambios tengo pendientes para publicar al repositorio, así como los que tengo pendiente por subir al staging area.

Bueno estos comando son muy importantes y espero que los tengan en cuenta

Saludos!

Sort:  

Great. Thanks for sharing. I vote for you and begin to follow you. And Resteemed...

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! This post has been upvoted from the communal account, @minnowsupport, by juanpchica from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

This post has been ranked within the top 10 most undervalued posts in the first half of Sep 02. We estimate that this post is undervalued by $82.85 as compared to a scenario in which every voter had an equal say.

See the full rankings and details in The Daily Tribune: Sep 02 - Part I. You can also read about some of our methodology, data analysis and technical details in our initial post.

If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62869.05
ETH 2545.35
USDT 1.00
SBD 2.72