Pro Git
Pro Git
🎯 ¿Cansado de los anuncios?
ElimÃnalos ahora 🚀
$ git clone https://github.com/tonychacon/blink
â‘
Cloning into 'blink'...
$ cd blink
$ git checkout -b slow-blink
â‘¡
Switched to a new branch 'slow-blink'
$ sed -i '' 's/1000/3000/' blink.ino
â‘¢
$ git diff --word-diff
â‘£
diff --git a/blink.ino b/blink.ino
index 15b9911..a6cc5a5 100644
--- a/blink.ino
+++ b/blink.ino
@@ -18,7 +18,7 @@ void setup() {
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
[-delay(1000);-]{+delay(3000);+} // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
[-delay(1000);-]{+delay(3000);+} // wait for a second
}
$ git commit -a -m 'three seconds is better'
⑤
[slow-blink 5ca509d] three seconds is better
1 file changed, 2 insertions(+), 2 deletions(-)
$ git push origin slow-blink
â‘¥
Username for 'https://github.com': tonychacon
Password for 'https://tonychacon@github.com':
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 340 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To https://github.com/tonychacon/blink
* [new branch] slow-blink -> slow-blink
â‘ Clonar nuestro fork en nuestro equipo
â‘¡ Crear la rama, que sea descriptiva
â‘¢ Realizar nuestros cambios
â‘£ Comprobar los cambios
⑤ Realizar un commit de los cambios en la rama
â‘¥ Enviar nuestra nueva rama de vuelta a nuestro fork
Ahora, si miramos nuestra bifurcación en GitHub, veremos que aparece un
aviso de creación de la rama y nos dará la oportunidad de hacer una solicitud
de integración con el proyecto original.
👉 Descargar el audiolibro GRATIS en Amazon Reportar problema / Sugerencias