Diferencia entre revisiones de «Práctica 2 14-15»
De Wiki de EGC
| Línea 7: | Línea 7: | ||
= status = | = status = | ||
| − | git status | + | <source lang="bash"> |
| + | ~/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 | ||
| + | # | ||
| + | </source> | ||
Revisión del 19:39 22 oct 2014
init
$ git initstatus
~/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
#