-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.me
executable file
·39 lines (25 loc) · 976 Bytes
/
README.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARCHIVO DE CONFIGURACION INICIAL
echo # Ejemplos >> README.md
git init // para incializar el archivo de configuracion
git add README.md //para agregar archivos especificos
git add . // agregar todo los archivos
git commit -m "first commit" //creacion de commit
git remote add origin https://github.com/Overprime/control-ingenieria.git // origen remoto
Si sale este error:
fatal: remote origin already exists
git remote rm origin //para renombrar el repositorio
git remote add origin https://github.com/Overprime/control-ingenieria.git // origen remoto
Luego:
git push -u origin master
:D listo
Eliminar un repositorio
git rm nombre-del-archivo.extensión
Luego seguimos el mismo proceso de subida
Clonar repositorio:
git clone https://github.com/Overprime/control-ingenieria.git
git pull //para mantener actualizar el repositorio
script php para git pull
<?php
$out=shell_exec("/usr/bin/git pull 2>&1");
var_dump($out);
?>