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

De Wiki de EGC
Saltar a: navegación, buscar
(push)
(push)
Línea 48: Línea 48:
 
<source lang="bash">
 
<source lang="bash">
 
$ git push origin master
 
$ git push origin master
The authenticity of host 'github.com (192.30.252.130)' can't be established.
+
Counting objects: 5, done.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
+
Delta compression using up to 4 threads.
Are you sure you want to continue connecting (yes/no)? yes
+
Compressing objects: 100% (2/2), done.
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
+
Writing objects: 100% (3/3), 329 bytes, done.
Counting objects: 3, done.
 
Writing objects: 100% (3/3), 286 bytes, done.
 
 
Total 3 (delta 0), reused 0 (delta 0)
 
Total 3 (delta 0), reused 0 (delta 0)
 
To git@github.com:egc-profe/test2.git
 
To git@github.com:egc-profe/test2.git
  * [new branch]      master -> master
+
  9d95b3f..b32395c master -> master
 
</source>
 
</source>

Revisión del 20:07 22 oct 2014

init

$ git init

status

~/test2.git$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	README
nothing added to commit but untracked files present (use "git add" to track)
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
#

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

$ git push origin master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 329 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:egc-profe/test2.git
   9d95b3f..b32395c  master -> master