Skip to content

Instantly share code, notes, and snippets.

@angelblasco
Created April 26, 2019 20:08
Show Gist options
  • Select an option

  • Save angelblasco/1c6956cf124ad3c8d659f7abe13b9e15 to your computer and use it in GitHub Desktop.

Select an option

Save angelblasco/1c6956cf124ad3c8d659f7abe13b9e15 to your computer and use it in GitHub Desktop.
Instrucciones para iniciar un repositorio Git.

#############################################

Subir archivos de proyecto local a GitHub

##############################################

$ git init
$ git add .
$ git commit -m "primer commit"
$ git remote add origin https://github.com/*usuario*/*nombredelrepositorio*.git
$ git push -u origin master'

#############################################

Clonar repositorios

#############################################

$ git clone https://github.com/*usuario*/*nombredelrepositorio*.git

#############################################

Consultar ramas, cambiar entre ellas y crear nuevas ramas

#############################################

$ git branch
$ git checkout *rama*
$ git branch *nuevarama*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment