Skip to content

enekid/masteruah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Básico

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.

GitHub Desktop

Medio. Ejercicios de Git, GitHub y Markdown

Repositorio masteruah

https://github.com/enekid/masteruah

Creado vacío. No lo clono porque lo iniciaré en local y haré push.

Init y configuración

git init
git config user.name "Eneko Lakasta"
git config user.email "enekolakasta@gmail.com"

README.md, commit y push

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 main

Nuevos tiempos, usamos main en lugar de master.

Ignorar archivos

Editar .gitignore

privado.txt
privada/

Añadir fichero 1.txt

git add 1.txt

Crear el tag v0.1

git tag v0.1

Subir cambios

git push origin main
git push origin v0.1

Cuenta GitHub

Foto

2FA

Crear tabla

NOMBRE GITHUB
Andrés Fondevila https://github.com/andresuah
Adolfo Onrubia https://github.com/Binomi0
Joseph Reyes https://github.com/jossjack

Avanzado. Ejercicios de Git, GitHub y Markdown.

Crear una rama v0.2

git checkout -b v0.2

Añadir fichero 2.txt

touch 2.txt
git add 2.txt
git commit -m'Add 2.txt'

Crear rama remota v0.2

git push origin v0.2

Merge directo

git checkout main
git merge v0.2

Merge con conflicto

echo "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.2

Listado de ramas

git branch --merged
git branch --no-merged

Arreglar conflicto

git add 1.txt
git commit -m'Fix merge 1.txt'

Borrar rama

git tag v0.2
git branch -d v0.2
git push --tag origin main

Listado de cambios

git log --oneline --decorate --graph --all

Crear organización y equipos

https://github.com/masteruah-enekid/masteruah-enekid.github.io

GitHub organizacion

GitHub administradores

GitHub colaboradores

Crear index.html

https://masteruah-enekid.github.io/

GitHub colaboradores

Crear pull requests

https://github.com/masteruah-leilane13/masteruah-leilane13.github.io

GitHub colaboradores

https://github.com/masteruah-jossjack/masteruah-jossjack.github.io

GitHub colaboradores

Gestionar pull requests

https://github.com/masteruah-enekid/masteruah-enekid.github.io/pulls?q=is%3Apr+is%3Aclosed

GitHub colaboradores

About

Master Blockchain: Git, GitHub & Markdown

Resources

Stars

Watchers

Forks

Packages

No packages published