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)
⚠️ ¡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
GUARDAR TU TOKEN DURANTE 1h

git config --global credential.helper 'cache --timeout=3600' 
 Este flujo permite conservar el historial y orden en cualquier proyecto Python. Registra cada cambio con un commit y publica con push.

Comentarios

Entradas populares