Skip to content

Latest commit

 

History

History
executable file
·
100 lines (76 loc) · 1.65 KB

README.org

File metadata and controls

executable file
·
100 lines (76 loc) · 1.65 KB

Git

Configuración global

$ git config --global user.name "Andres Angarita"
$ git config --global user.email "[email protected]"
$ git config --global core.editor vim
$ git config --global color.ui true
$ git config --global --list

Crear un nuevo repositorio

$ git clone [email protected]:angaritaoa/Notas.git
$ cd Notas
$ touch README.md
$ git add README.md
$ git commit -m "add README"
$ git push -u origin master

Iniciar un repositorio

$ git init
$ git checkout master
$ git-flow init

Clonar un repositorio

$ git clone //servidor/<nombre_repo>

Obtener los últimos cambios

$ git checkout master
$ git fetch --all origin
$ git pull --all origin

Listar las ramas

$ git branch -av

Iniciar una rama feature

$ git checkout -b feature/C14729 develop
$ git-flow feature start C14729

Finalizar una rama feature

$ git checkout develop
$ git merge --no-ff feature/C14729
$ git branch -d feature/C14729
$ git push
$ git-flow feature finish C14729

Iniciar una rama release

$ git checkout -b release/1.0 develop
$ git-flow release start 1.0

Finalizar una rama release

$ git checkout master
$ git merge --no-ff release/1.0
$ git tag v1.0
$ git push
$ git checkout develop
$ git merge --no-ff release/1.0
$ git branch -d release/1.0
$ git push
$ git-flow release finish '1.0'