#Creando una rama en Git y subiendola a GitHub

1 messages · Page 1 of 1 (latest)

harsh shuttle
#

Abri Visual studio code

#

y una terminal

timid heath
#

ok, tengo la terminal y el vs en la carpeta de pruebas tecnicas

harsh shuttle
#

ok, ahora hace git remote

timid heath
#

salio origin

harsh shuttle
#

ok, my bad

#

es git remote -v

timid heath
harsh shuttle
#

perfecto, ese es tu repositorio en github

#

ahora, crea una rama nueva

#

git branch nombre-de-mi-rama

timid heath
#

vava

lusty python
#

que nombre se le suele poner?

#

por ejemplo

timid heath
#

en el stream dijo que el nombre de usuario de github, para este repo

harsh shuttle
timid heath
#

ya cree la rama

lusty python
#

listo

harsh shuttle
timid heath
#

si

lusty python
#

yes

harsh shuttle
#

si te das cuenta, la terminal te muestra que estás en main. tenes que cambiarte a la rama que acabas de crear

#

usando git checkout nombre-de-la-rama

lusty python
#

mesientodios

timid heath
#

si ya me cambio el nombre

lusty python
#

ahora haces otra vez git branch y te sale ahi, cool

harsh shuttle
#

ahora pueden hacer unos cuantos commits, y los suben a GitHub

#

saben hacer commits?

lusty python
#

eso shi

#

me cuesta eso de las ramas, PR, moverse entre ramas, etc

harsh shuttle
#

@timid heath vos sabes?

#

@lusty python hace algun commit, y te ayudo a subir la rama a GitHub

timid heath
#

no

harsh shuttle
lusty python
#

eres el mejor amigo @harsh shuttle gracias, suerte pa @timid heath

timid heath
#

ok hice un cambio en el readme xD

#

en el vs me sale esto mira

#

el boton de commit

harsh shuttle
# timid heath

ok, ahora hacé git status. Vas a ver que la terminal te muestra ese archivo de color verde, como que tiene cambios

harsh shuttle
# timid heath

si, tambien podes hacerlo desde la interfaz gráfica, es lo mismo

#

si queres desde la interfaz gráfica, hace click en commit

timid heath
harsh shuttle
#

perfecto, ahora hace git add README.md para agregar ese archivo

#

y despues git commit -m "primer commit"

timid heath
harsh shuttle
#

perfecto, ahora hay que enviar la rama a GitHub. Para eso, hace git push -u origin nombre-de-mi-rama

timid heath
#

salio asi

harsh shuttle
#

ahora la rama deberia estar en github

timid heath
#

si

harsh shuttle
timid heath
#

sip

harsh shuttle
#

contribute > open pull request

#

y ahi haces la pr al repo de Midu

timid heath
#

ya aparecio en la repo de midu

harsh shuttle
#

🥳

timid heath
#

entonces cuando cree mas archivos y asi tengo que hacer lo mismo

harsh shuttle
timid heath
#

y por ejemplo si ya tengo un repositorio mio puedo hacer lo mismo verdad

harsh shuttle
#

sip

lusty python
#

sabes que el pide que creemos un fichero con nuestro nombre, y se supone que ahi debe estar el framework o tecnologia que utilicemos no?