Subir soft a Github (Python)
GitHub · WordPress · Python
Cómo crear un Repositorio y actualizar tu Código
Publicación y actualización en GitHub usando HTTPS + Token Personal.
1. CREAR EL PROYECTO EN GITHUB
Primero, crea el repositorio vacío (nombre "folder") en la web de GitHub:
Tu usuario ("usuario1") y URL de repositorio ("folder") será algo como:
https://github.com/usuario1/folder.git
2. INICIAR CARPETA LOCAL Y VINCULAR
Abre tu terminal dentro de la carpeta de tu proyecto y ejecuta:
cd folder
git init
git branch -M main
git remote add origin https://github.com/usuario1/folder.git
🚀 SUBIR / ACTUALIZAR CÓDIGO
Usa estos comandos para enviar tus cambios:
git add .
git commit -m "v1.0"
git push -u origin main
# El terminal responderá:
Username for 'https://github.com': usuario1
Password for 'https://usuario1@github.com': (PEGA AQUÍ TU TOKEN)
git commit -m "v1.0"
git push -u origin main
# El terminal responderá:
Username for 'https://github.com': usuario1
Password for 'https://usuario1@github.com': (PEGA AQUÍ TU TOKEN)
⚠️ ¡ATENCIÓN AL TOKEN!
GitHub ya no acepta tu contraseña normal. Debes generar un Personal Access Token en:
Settings -> Developer Settings -> Personal access tokens
Bajar código de GitHub (Clonar)
git clone https://github.com/usuario1/folder.git
- Obtener enlace
- X
- Correo electrónico
- Otras aplicaciones
Comentarios
Publicar un comentario