Skip to content

Comando para commitear los cambios en stage, crear una rama, hacer push y crear un PR

Notifications You must be signed in to change notification settings

Vicentecorrea/comando-fast-PR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Comandos de consola para agilizar git

🍏 Hacer un PR rápidamente

Ejemplo de uso

pr feat: tlabajar a lo malditto

Esto hace lo siguiente:

  1. Crea rama feat/tlabajar-a-lo-malditto y se mueve a ella
  2. Commitea tomando solo los cambios en git stage. El mensaje del commit será "feat: trlabajar a lo malditto"
  3. Pushea a la rama
  4. Abre el navegador con el PR apuntando hacia master/main

🍉 Hacer amend y push

amepush

Esto hace lo siguiente:

  1. git commit --amend --no-edit: agrega los cambios en git stage al último commit manteniendo su mensaje
  2. git push origin HEAD -f: sube esos cambios al remoto

⚙️ Configuración

Para la shell zsh:

  1. En ~/.zshrc, cargar este archivo haciendo source ~/comando-fast-PR/.zsh_functions.sh
  2. Luego de hacer cambios en esta función se debe recargar la configuración con source ~/.zshrc

About

Comando para commitear los cambios en stage, crear una rama, hacer push y crear un PR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages