Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vanmaren@vanmaren-VirtualBox:~/my_repo$ git clone https://github.com/vanmaren/cal_2com
- Clonar en «cal_2com»...
- remote: Counting objects: 7, done.
- remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 7
- Unpacking objects: 100% (7/7), done.
- Comprobando la conectividad… hecho.
- vanmaren@vanmaren-VirtualBox:~/my_repo$ ls
- cal_2com calculator.html README.md
- vanmaren@vanmaren-VirtualBox:~/my_repo$ cd cal_2com/
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ ls
- calculator.html LICENSE README.md
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ diff calculator.html
- diff: falta un operando después de 'calculator.html'
- diff: Pruebe 'diff --help' para más información.
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ gut status
- No se ha encontrado la orden «gut», quizás quiso decir:
- La orden «cut» del paquete «coreutils» (main)
- La orden «gmt» del paquete «gmt» (universe)
- La orden «gpt» del paquete «gpt» (universe)
- La orden «git» del paquete «git» (main)
- La orden «gout» del paquete «scotch» (universe)
- La orden «gst» del paquete «gnu-smalltalk» (universe)
- La orden «gt» del paquete «genometools» (universe)
- gut: no se encontró la orden
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status
- En la rama master
- Su rama está actualizada con «origin/master».
- Cambios no preparados para el commit:
- (use «git add <archivo>...» para actualizar lo que se confirmará)
- (use «git checkout -- <archivo>...» para descartar cambios en el directorio de trabajo)
- modificado: calculator.html
- no hay cambios agregados al commit (use «git add» o «git commit -a»)
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git lg
- git: «lg» no es una orden de git. Vea «git --help»
- ¿Se refiere a este?
- log
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log
- commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 19:23:10 2017 +0100
- x^2 button
- commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git add .
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log
- commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 19:23:10 2017 +0100
- x^2 button
- commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log
- commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 19:23:10 2017 +0100
- x^2 button
- commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status
- En la rama master
- Su rama está actualizada con «origin/master».
- Cambios para hacer commit:
- (use «git reset HEAD <archivo>...» para sacar del stage)
- modificado: calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git commit -m "Calculadora: Autores"
- [master e0d18f0] Calculadora: Autores
- 1 file changed, 1 insertion(+)
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log **oneline
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --oneline
- e0d18f0 Calculadora: Autores
- b0e63ad x^2 button
- 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch
- * master
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git remote -v
- origin https://github.com/vanmaren/cal_2com (fetch)
- origin https://github.com/vanmaren/cal_2com (push)
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch -a -vv
- * master e0d18f0 [origin/master: ahead 1] Calculadora: Autores
- remotes/origin/HEAD -> origin/master
- remotes/origin/master b0e63ad x^2 button
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git fetch hhtps://github.com/jquemada/cal_branches inverse:inverse
- fatal: Unable to find remote helper for 'hhtps'
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git fetch https://github.com/jquemada/cal_branches inverse:inverse
- remote: Counting objects: 3, done.
- remote: Compressing objects: 100% (3/3), done.
- remote: Total 3 (delta 0), reused 1 (delta 0), pack-reused 0
- Unpacking objects: 100% (3/3), done.
- De https://github.com/jquemada/cal_branches
- * [new branch] inverse -> inverse
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --onelinee0d18f0 Calculadora: Autores
- b0e63ad x^2 button
- 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch -a -vv inverse e868dc4 1/x button
- * master e0d18f0 [origin/master: ahead 1] Calculadora: Autores
- remotes/origin/HEAD -> origin/master
- remotes/origin/master b0e63ad x^2 button
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git merge -m "Integrar inverse" inverse
- Automezclado calculator.html
- CONFLICTO(añadir/añadir): conflicto de fusión en calculator.html
- Automatic merge failed; fix conflicts and then commit the result.
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ ls
- calculator.html LICENSE README.md
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ diff calculator.html
- diff: falta un operando después de 'calculator.html'
- diff: Pruebe 'diff --help' para más información.
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git diff c
- fatal: ambiguous argument 'c': unknown revision or path not in the working tree.
- Use '--' to separate paths from revisions, like this:
- 'git <command> [<revision>...] -- [<file>...]'
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git diff calculator.html
- diff --cc calculator.html
- index 7aec492,fc74320..0000000
- --- a/calculator.html
- +++ b/calculator.html
- @@@ -2,17 -2,16 +2,30 @@@
- <title>Calculator</title><meta charset="utf-8">
- <script type="text/javascript">
- ++<<<<<<< HEAD
- +function square() {
- + var num = document.getElementById("n1");
- + num.value = num.value * num.value;
- ++=======
- + function inverse() {
- + var num = document.getElementById("n1");
- + num.value = 1/num.value;
- ++>>>>>>> inverse
- }
- </script>
- </head>
- <body>
- ++<<<<<<< HEAD
- +<h1>ENRIQUE VAÑÓ MARTINEZ ESTER VICARIO BRAVO</h1>
- + Number:
- + <input type="text" id="n1"><p>
- +
- + <button onclick="square()"> x<sup>2</sup> </button>
- ++=======
- + Number:
- + <input type="text" id="n1"><p>
- +
- + <button onclick="inverse()"> 1/x </button>
- ++>>>>>>> inverse
- </body>
- </html>
- ^X
- [3]+ Detenido git diff calculator.html
- ^C^C
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --oneline
- e0d18f0 Calculadora: Autores
- b0e63ad x^2 button
- 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch -a -vv
- inverse e868dc4 1/x button
- * master e0d18f0 [origin/master: ahead 1] Calculadora: Autores
- remotes/origin/HEAD -> origin/master
- remotes/origin/master b0e63ad x^2 button
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status -s
- AA calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git diff
- diff --cc calculator.html
- index 7aec492,fc74320..0000000
- --- a/calculator.html
- +++ b/calculator.html
- @@@ -2,10 -2,10 +2,16 @@@
- <title>Calculator</title><meta charset="utf-8">
- <script type="text/javascript">
- ++<head>
- +function square() {
- + var num = document.getElementById("n1");
- + num.value = num.value * num.value;
- +}
- ++
- + function inverse() {
- + var num = document.getElementById("n1");
- + num.value = 1/num.value;
- + }
- </script>
- </head>
- <body>
- @@@ -13,6 -12,6 +19,7 @@@
- Number:
- <input type="text" id="n1"><p>
- + <button onclick="square()"> x<sup>2</sup> </button>
- + <button onclick="inverse()"> 1/x </button>
- </body>
- </html>
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ cd
- vanmaren@vanmaren-VirtualBox:~$ ls
- Descargas Escritorio Imágenes my_repo Público
- Documentos examples.desktop Música Plantillas Vídeos
- vanmaren@vanmaren-VirtualBox:~$ cd my_repo/
- vanmaren@vanmaren-VirtualBox:~/my_repo$ s
- s: no se encontró la orden
- vanmaren@vanmaren-VirtualBox:~/my_repo$ ls
- cal_2com calculator.html README.md
- vanmaren@vanmaren-VirtualBox:~/my_repo$ cd c
- bash: cd: c: No existe el archivo o el directorio
- vanmaren@vanmaren-VirtualBox:~/my_repo$ cd cal_2com/
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ cd ..
- vanmaren@vanmaren-VirtualBox:~/my_repo$ nano cal
- vanmaren@vanmaren-VirtualBox:~/my_repo$ nano cal
- cal_2com/ calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo$ ls
- cal_2com calculator.html README.md
- vanmaren@vanmaren-VirtualBox:~/my_repo$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo$ cd cal_2com/
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ nano calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch
- inverse
- * master
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --oneline
- e0d18f0 Calculadora: Autores
- b0e63ad x^2 button
- 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status
- En la rama master
- Su rama está delante de «origin/master» para 1 commit.
- (use "git push" to publish your local commits)
- Tiene rutas sin fusionar.
- (solucione los conflictos y ejecute «git commit»)
- Rutas no combinadas:
- (use «git add <archivo>...» para marcar resolución)
- añadido por ambos: calculator.html
- no hay cambios agregados al commit (use «git add» o «git commit -a»)
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status -s
- AA calculator.html
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git commit -m "Integrar inverse"
- U calculator.html
- error: commit is not possible because you have unmerged files.
- consejo: Fix them up in the work tree, and then use 'git add/rm <file>'
- consejo: as appropriate to mark resolution and make a commit.
- fatal: Exiting because of an unresolved conflict.
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git diff
- diff --cc calculator.html
- index 7aec492,fc74320..0000000
- --- a/calculator.html
- +++ b/calculator.html
- @@@ -2,10 -2,10 +2,15 @@@
- <title>Calculator</title><meta charset="utf-8">
- <script type="text/javascript">
- +function square() {
- + var num = document.getElementById("n1");
- + num.value = num.value * num.value;
- +}
- ++
- + function inverse() {
- + var num = document.getElementById("n1");
- + num.value = 1/num.value;
- + }
- </script>
- </head>
- <body>
- @@@ -13,6 -12,6 +18,7 @@@
- Number:
- <input type="text" id="n1"><p>
- + <button onclick="square()"> x<sup>2</sup> </button>
- + <button onclick="inverse()"> 1/x </button>
- </body>
- </html>
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git commit -a -m "Integrar inverse"
- [master d3b697a] Integrar inverse
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git status -s
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --oneline
- d3b697a Integrar inverse
- e0d18f0 Calculadora: Autores
- e868dc4 1/x button
- b0e63ad x^2 button
- 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch --all --graph
- error: unknown option `graph'
- uso: git branch [<options>] [-r | -a] [--merged | --no-merged]
- o: git branch [<options>] [-l] [-f] <branch-name> [<start-point>]
- o: git branch [<options>] [-r] (-d | -D) <branch-name>...
- o: git branch [<options>] (-m | -M) [<old-branch>] <new-branch>
- o: git branch [<options>] [-r | -a] [--points-at]
- Opciones genéricas
- -v, --verbose show hash and subject, give twice for upstream branch
- -q, --quiet Eliminar mensajes informativos
- -t, --track set up tracking mode (see git-pull(1))
- --set-upstream change upstream info
- -u, --set-upstream-to <upstream>
- change the upstream info
- --unset-upstream Unset the upstream info
- --color[=<when>] usar salida coloreada
- -r, --remotes act on remote-tracking branches
- --contains <commit> print only branches that contain the commit
- --abbrev[=<n>] use <n> digits to display SHA-1s
- Specific git-branch actions:
- -a, --all list both remote-tracking and local branches
- -d, --delete delete fully merged branch
- -D delete branch (even if not merged)
- -m, --move move/rename a branch and its reflog
- -M move/rename a branch, even if target exists
- --list listar los nombres de las ramas
- -l, --create-reflog create the branch's reflog
- --edit-description editar la descripción de la rama
- -f, --force force creation, move/rename, deletion
- --merged <commit> print only branches that are merged
- --no-merged <commit> print only branches that are not merged
- --column[=<style>] listar las ramas en columnas
- --sort <key> field name to sort on
- --points-at <object> print only branches of the object
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch --graph
- error: unknown option `graph'
- uso: git branch [<options>] [-r | -a] [--merged | --no-merged]
- o: git branch [<options>] [-l] [-f] <branch-name> [<start-point>]
- o: git branch [<options>] [-r] (-d | -D) <branch-name>...
- o: git branch [<options>] (-m | -M) [<old-branch>] <new-branch>
- o: git branch [<options>] [-r | -a] [--points-at]
- Opciones genéricas
- -v, --verbose show hash and subject, give twice for upstream branch
- -q, --quiet Eliminar mensajes informativos
- -t, --track set up tracking mode (see git-pull(1))
- --set-upstream change upstream info
- -u, --set-upstream-to <upstream>
- change the upstream info
- --unset-upstream Unset the upstream info
- --color[=<when>] usar salida coloreada
- -r, --remotes act on remote-tracking branches
- --contains <commit> print only branches that contain the commit
- --abbrev[=<n>] use <n> digits to display SHA-1s
- Specific git-branch actions:
- -a, --all list both remote-tracking and local branches
- -d, --delete delete fully merged branch
- -D delete branch (even if not merged)
- -m, --move move/rename a branch and its reflog
- -M move/rename a branch, even if target exists
- --list listar los nombres de las ramas
- -l, --create-reflog create the branch's reflog
- --edit-description editar la descripción de la rama
- -f, --force force creation, move/rename, deletion
- --merged <commit> print only branches that are merged
- --no-merged <commit> print only branches that are not merged
- --column[=<style>] listar las ramas en columnas
- --sort <key> field name to sort on
- --points-at <object> print only branches of the object
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --graph
- * commit d3b697a44e9754db24d2d6979014e52b993a7f11
- |\ Merge: e0d18f0 e868dc4
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Mon Apr 10 13:19:27 2017 +0200
- | |
- | | Integrar inverse
- | |
- | * commit e868dc46711f323fc5b9eb568e117446fc90b03a
- | | Author: Juan Quemada <jquemada@dit.upm.es>
- | | Date: Tue Feb 14 22:38:24 2017 +0100
- | |
- | | 1/x button
- | |
- * | commit e0d18f007758f024fb2c80ed8b2ff292c571105f
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Wed Apr 5 13:23:04 2017 +0200
- | |
- | | Calculadora: Autores
- | |
- * | commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- |/ Author: Juan Quemada <jquemada@dit.upm.es>
- | Date: Tue Feb 14 19:23:10 2017 +0100
- |
- | x^2 button
- |
- * commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- ^X
- [4]+ Detenido git log --graph
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --graph -s
- * commit d3b697a44e9754db24d2d6979014e52b993a7f11
- |\ Merge: e0d18f0 e868dc4
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Mon Apr 10 13:19:27 2017 +0200
- | |
- | | Integrar inverse
- | |
- | * commit e868dc46711f323fc5b9eb568e117446fc90b03a
- | | Author: Juan Quemada <jquemada@dit.upm.es>
- | | Date: Tue Feb 14 22:38:24 2017 +0100
- | |
- | | 1/x button
- | |
- * | commit e0d18f007758f024fb2c80ed8b2ff292c571105f
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Wed Apr 5 13:23:04 2017 +0200
- | |
- | | Calculadora: Autores
- | |
- * | commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- |/ Author: Juan Quemada <jquemada@dit.upm.es>
- | Date: Tue Feb 14 19:23:10 2017 +0100
- |
- | x^2 button
- |
- * commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- (END)
- [5]+ Detenido git log --graph -s
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch
- inverse
- * master
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --oneline --graph
- * d3b697a Integrar inverse
- |\
- | * e868dc4 1/x button
- * | e0d18f0 Calculadora: Autores
- * | b0e63ad x^2 button
- |/
- * 1096247 Readme & License
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git merge inverse
- Already up-to-date.
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch
- inverse
- * master
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git log --graph
- * commit d3b697a44e9754db24d2d6979014e52b993a7f11
- |\ Merge: e0d18f0 e868dc4
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Mon Apr 10 13:19:27 2017 +0200
- | |
- | | Integrar inverse
- | |
- | * commit e868dc46711f323fc5b9eb568e117446fc90b03a
- | | Author: Juan Quemada <jquemada@dit.upm.es>
- | | Date: Tue Feb 14 22:38:24 2017 +0100
- | |
- | | 1/x button
- | |
- * | commit e0d18f007758f024fb2c80ed8b2ff292c571105f
- | | Author: vanmaren <vanmaren81@gmail.com>
- | | Date: Wed Apr 5 13:23:04 2017 +0200
- | |
- | | Calculadora: Autores
- | |
- * | commit b0e63ad0a57510d65814ac8ff98c7eb16bf359c1
- |/ Author: Juan Quemada <jquemada@dit.upm.es>
- | Date: Tue Feb 14 19:23:10 2017 +0100
- |
- | x^2 button
- |
- * commit 1096247078156a7fb1726d567d4345070d5eb5f0
- Author: Juan Quemada <jquemada@dit.upm.es>
- Date: Tue Feb 14 18:53:39 2017 +0100
- Readme & License
- (END)
- [6]+ Detenido git log --graph
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git branch
- inverse
- * master
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$ git push --all
- Username for 'https://github.com': vanmaren
- Password for 'https://vanmaren@github.com':
- Counting objects: 9, done.
- Compressing objects: 100% (9/9), done.
- Writing objects: 100% (9/9), 926 bytes | 0 bytes/s, done.
- Total 9 (delta 6), reused 0 (delta 0)
- remote: Resolving deltas: 100% (6/6), completed with 2 local objects.
- To https://github.com/vanmaren/cal_2com
- b0e63ad..d3b697a master -> master
- * [new branch] inverse -> inverse
- vanmaren@vanmaren-VirtualBox:~/my_repo/cal_2com$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement