Last active
March 28, 2019 20:52
-
-
Save jofese/30710d62483d9d288cecae319ea3e8f8 to your computer and use it in GitHub Desktop.
Gist con los comandos prncipales de github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1.- configurar variables locales | |
| $ git config --global user.name "tu_usuario" | |
| $ git config --global user.email [email protected] | |
| /* | |
| Generar clave ssh : | |
| ssh-keygen | |
| */ | |
| dar permiso a /var/www/ o el directorio donde vas a clonara el repo | |
| sudo chown -R www-data:www-data /var/www/html/* | |
| // 2.- crear repositorio desde la web | |
| //3.- creamos una carpeta con nombre igual al respositorio | |
| $ mkdir aprendelaravel | |
| $ cd aprendelaravel | |
| //4.- Clonar repositorio en local(checkout) | |
| $ git init | |
| $ git remote add origin https://github.com/jeffer8a/aprendelaravel.git | |
| //5.- Copiamos el codigo del repositorio web (Update) | |
| $ git pull origin master | |
| // 6.- Verificamos si hay algun cambio en el repositorio local | |
| $ git status | |
| // 7.- agregamos el archivos nuevos | |
| $ git add archivo.html | |
| // agregar todos los archivos nuevos | |
| $ git add -A | |
| //8.- Commits | |
| $ git commit -m "este es mi primer comit sobre la creacion del archivo index.html" | |
| //9.- Enviar archivos al repositorio remoto | |
| $ git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment