En el trabajo uso git a diario, así que algunos de los puntos no los puedo realizar de nuevo (instalar git, registro GitHub y ssh)
Usuario GitHub: enekid
La configuración de usuario y email la realizo en el siguiente ejercicio de manera local.
https://github.com/enekid/masteruah
Creado vacío. No lo clono porque lo iniciaré en local y haré push.
git init
git config user.name "Eneko Lakasta"
git config user.email "enekolakasta@gmail.com"git add README.md
git commit -m "commit inicial"
git branch -M main
git remote add origin git@github.com:enekid/masteruah.git
git push -u origin mainNuevos tiempos, usamos main en lugar de master.
Editar .gitignore
privado.txt
privada/
git add 1.txtgit tag v0.1git push origin main
git push origin v0.1| NOMBRE | GITHUB |
|---|---|
| Andrés Fondevila | https://github.com/andresuah |
| Adolfo Onrubia | https://github.com/Binomi0 |
| Joseph Reyes | https://github.com/jossjack |
git checkout -b v0.2touch 2.txt
git add 2.txt
git commit -m'Add 2.txt'git push origin v0.2git checkout main
git merge v0.2echo "Hola" > 1.txt
git add 1.txt
git commit -m'Change 1.txt'
git checkout v0.2
echo "Adios" > 1.txt
git add 1.txt
git commit -m'Change 1.txt again'
git checkout main
git merge v0.2git branch --merged
git branch --no-mergedgit add 1.txt
git commit -m'Fix merge 1.txt'git tag v0.2
git branch -d v0.2
git push --tag origin maingit log --oneline --decorate --graph --allhttps://github.com/masteruah-enekid/masteruah-enekid.github.io
https://masteruah-enekid.github.io/
https://github.com/masteruah-leilane13/masteruah-leilane13.github.io
https://github.com/masteruah-jossjack/masteruah-jossjack.github.io
https://github.com/masteruah-enekid/masteruah-enekid.github.io/pulls?q=is%3Apr+is%3Aclosed








