Diferencia entre revisiones de «Práctica 2 14-15»

De Wiki de EGC
Saltar a: navegación, buscar
(push)
 
(No se muestran 31 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
= init =
+
* [[Creando cuenta en git hub]]
 
+
* [[Establece configuración global]]
<source lang="bash">
+
* [[Clonando un repositorio existente]]
$ git init
+
* [[Iniciando un repositorio desde cero]]
</source>
+
* [[Realizando mi primer commit]]
 
+
* [[Revisando el historial de cambios]]
= status =
+
* [[Arqueología del software: annotate]]
 
+
* [[Borrado y renombrado de ficheros]]
<source lang="bash">
+
* [[Enviando cambios al servidor: push]]
~/test2.git$ git status
+
* [[Obteniendo cambios del servidor: pull]]
# On branch master
+
* [[Deshaciendo cambios]]
#
+
* [[Revirtiendo cambios]]
# Initial commit
+
* [[Rehaciendo cambios locales]]
#
+
* [[Exportando cambios: Creando una diferencia incremental]]
# Untracked files:
+
* [[Importando cambios: Aplicando una diferencia incremental]]
#  (use "git add <file>..." to include in what will be committed)
+
* [[Empleando nuevas ramas]]
#
+
* [[Enviando una rama al servidor]]
# README
+
* [[Usando una rama del servidor]]
nothing added to commit but untracked files present (use "git add" to track)
+
* [[Uniendo ramas]]
practica@LSI-160:~/test2.git$ git add README
 
practica@LSI-160:~/test2.git$ git status
 
# On branch master
 
#
 
# Initial commit
 
#
 
# Changes to be committed:
 
#  (use "git rm --cached <file>..." to unstage)
 
#
 
# new file:   README
 
#
 
</source>
 
 
 
= config =
 
 
 
git config --global user.email you@example.com
 
practica@LSI-160:~/test2.git$ git config --global user.email pneira@us.es
 
 
 
= commit =
 
 
 
git commit
 
 
 
= log =
 
 
 
git log
 
 
 
= push=
 
 
 
<source lang="bash">
 
git push origin master
 
The authenticity of host 'github.com (192.30.252.130)' can't be established.
 
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
 
Are you sure you want to continue connecting (yes/no)? yes
 
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
 
Counting objects: 3, done.
 
Writing objects: 100% (3/3), 286 bytes, done.
 
Total 3 (delta 0), reused 0 (delta 0)
 
To git@github.com:egc-profe/test2.git
 
* [new branch]     master -> master
 
</source>
 

Revisión actual del 17:26 10 nov 2015