0% encontró este documento útil (0 votos)
65 vistas2 páginas

Error al agregar archivo en Git

El documento describe los pasos para crear una carpeta llamada "KattyDiciembre" en el escritorio, abrir el editor de texto Atom y arrastrar la carpeta recién creada a él. Luego, se inicializa un repositorio Git en la carpeta, se agrega y confirma un archivo llamado "CPbuscar.txt", y se crea y cambia a una rama llamada "kate" donde se agrega contenido al archivo y se confirma en la rama. Finalmente, se vincula el repositorio local con uno remoto en GitHub y se sube la rama
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como TXT, PDF, TXT o lee en línea desde Scribd
0% encontró este documento útil (0 votos)
65 vistas2 páginas

Error al agregar archivo en Git

El documento describe los pasos para crear una carpeta llamada "KattyDiciembre" en el escritorio, abrir el editor de texto Atom y arrastrar la carpeta recién creada a él. Luego, se inicializa un repositorio Git en la carpeta, se agrega y confirma un archivo llamado "CPbuscar.txt", y se crea y cambia a una rama llamada "kate" donde se agrega contenido al archivo y se confirma en la rama. Finalmente, se vincula el repositorio local con uno remoto en GitHub y se sube la rama
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como TXT, PDF, TXT o lee en línea desde Scribd

Crear carpeta en escritorio KattyDiciembre

Abrir Atom (descargar)

Cuando está abierto arrastra la carpeta creada KattyDiciembre

Katy@LAPTOP-4S62RNHD MINGW64 ~
$ cd desktop

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop


$ cd kattydiciembre

------EN ATOM----
te situas en tu carpeta KattyDiciembre anticlick ycrear el archivo Cpbuscar.txt

-------------

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre


$ git init
Initialized empty Git repository in C:/Users/Katy/Desktop/KattyDiciembre/.git/

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git status
On branch master

No commits yet

Untracked files:
(use "git add <file>..." to include in what will be committed)
CPbuscar

nothing added to commit but untracked files present (use "git add" to track)

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git add CPbuscar.txt
fatal: pathspec 'CPbuscar.txt' did not match any files

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git add CPbuscar.txt

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git commit -m "Prueba uno"
[master (root-commit) b797ff3] Prueba uno
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 CPbuscar.txt

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git branch
* master

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git branch kate

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git checkout kate
Switched to branch 'kate'

-----------EN ATOM
vas al ATOM te ubicas en tu archivo.txt y le pegas en la parte derecha el texto del

caso de prueba y luego File y save


------------------
Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (kate)
$ GIT STATUS
fatal: cannot handle STATUS as a builtin

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (kate)


$ git status
On branch kate
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: CPbuscar.txt

no changes added to commit (use "git add" and/or "git commit -a")

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (kate)


$ git add CPbuscar.txt

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (kate)


$ git commit -m "caso de prueba buscar"
[kate 9f7ee87] caso de prueba buscar
1 file changed, 9 insertions(+)

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (kate)


$ git checkout master
Switched to branch 'master'

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git remote add origin https://github.com/kate1afa/Prueba1.git

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$ git push -u origin kate

Enumerating objects: 6, done.


Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (6/6), 624 bytes | 624.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/kate1afa/Prueba1.git
* [new branch] kate -> kate
Branch 'kate' set up to track remote branch 'kate' from 'origin'.

Katy@LAPTOP-4S62RNHD MINGW64 ~/desktop/kattydiciembre (master)


$

También podría gustarte