Skip to content

Instantly share code, notes, and snippets.

@pazthor
Created May 17, 2023 23:42
Show Gist options
  • Save pazthor/4f32c9bda47ead7b60c2851412792837 to your computer and use it in GitHub Desktop.
Save pazthor/4f32c9bda47ead7b60c2851412792837 to your computer and use it in GitHub Desktop.
Subir repositorio local a repo creado por primera vez

#…or create a new repository on the command line

echo "# test-lol" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:pazthor/test-lol.git
git push -u origin main

#…or push an existing repository from the command line

git remote add origin git@github.com:pazthor/test-lol.git
git branch -M main
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment