Last active
August 29, 2015 14:15
-
-
Save ayozebarrera/2f31a82050844462351f to your computer and use it in GitHub Desktop.
Make a repository on github from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# CREAR UN REPOSITORIO EN GITHUB DESDE LA TERMINAL ############################ | |
############################################################################### | |
############################################################################### | |
# Crear el repositorio en Github (Github API v3) | |
curl -u '<user>' https://api.github.com/user/repos -d '{ "name": "<repository>" }' | |
# Añadir el repositorio remoto de Github a nuestro repositorio local | |
git remote add origin [email protected]:<user>/<repository>.git | |
# Añadimos todos los cambios | |
git add . | |
# Commit inicial | |
git commit -m "init" | |
# Enviar cambios del repositorio local a Github | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment