Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
1
respuesta

03 Haga lo que hicimos

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2
$ git init
Initialized empty Git repository in C:/Users/rncli/OneDrive/Documentos/git-y-github/sistema-de-registro-2/.git/

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git status
On branch master

No commits yet

Untracked files:
(use "git add ..." to include in what will be committed)
index.html

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

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git add .

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git commit -m "Crea el index"
[master (root-commit) a1dbd56] Crea el index
1 file changed, 11 insertions(+)
create mode 100644 index.html

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git remote add origin https://github.com/cromeron/sistema-de-registro-2.git

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git remote -v
origin https://github.com/cromeron/sistema-de-registro-2.git (fetch)
origin https://github.com/cromeron/sistema-de-registro-2.git (push)

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (master)
$ git branch -M main

rncli@crn MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro-2 (main)
$ git push -u origin main
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 12 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 364 bytes | 364.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/cromeron/sistema-de-registro-2.git

  • [new branch] main -> main
    branch 'main' set up to track 'origin/main'.
1 respuesta

Hola Carlos, espero que estés bien

Parece que has seguido correctamente los pasos para inicializar un repositorio Git, agregar un archivo, hacer un commit, y luego subirlo a un repositorio remoto en GitHub. Has cambiado la rama de master a main y has realizado un push exitosamente. Todo indica que has completado la tarea de "Haga lo que hicimos" de manera adecuada.

Si tu pregunta está relacionada con si has hecho algo incorrecto, desde lo que has compartido, parece que todo está en orden. Si hay algo más específico que te preocupa o si hay un paso que te gustaría que revisáramos juntos, no dudes en mencionarlo.

Espero haber ayudado y buenos estudios!