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

De Wiki de EGC
Saltar a: navegación, buscar
Línea 7: Línea 7:
 
* [[Enviando cambios al servidor: push]]
 
* [[Enviando cambios al servidor: push]]
 
* [[Obteniendo cambios del servidor: pull]]
 
* [[Obteniendo cambios del servidor: pull]]
 
+
* [[Empleando nuevas ramas]]
= branch / checkout =
 
 
 
<source lang="bash">
 
practica@LSI-160:~/test2.git$ git branch test
 
practica@LSI-160:~/test2.git$ git branch
 
* master
 
  test
 
practica@LSI-160:~/test2.git$ git checkout test
 
Switched to branch 'test'
 
practica@LSI-160:~/test2.git$ git branch
 
  master
 
* test
 
practica@LSI-160:~/test2.git$ git checkout master
 
Switched to branch 'master'
 
practica@LSI-160:~/test2.git$ git branch -D test
 
Deleted branch test (was b32395c).
 
practica@LSI-160:~/test2.git$ git branch
 
* master
 
</source>
 
  
 
= clone =
 
= clone =

Revisión del 22:44 29 oct 2014

clone

git clone git@github.com:egc-profe/test2.git
Cloning into 'test2'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 9 (delta 0), reused 9 (delta 0)
Receiving objects: 100% (9/9), done.

revert

$ git log --oneline da883f2 add .gitignore file b32395c Update README file 9d95b3f This is my initial commit

$ git revert b32395c