Git tips
🔀

Git tips

Author
André Arruda
Tags
git
Development
Slug
Published
Dec 2, 2024
Tag

Correção de descrição de commit

git commit -m "<tipo>: <descrição>" --amend
 

Agrupando, modificando ou desfazendo um commit

git rebase -i HEAD~3 # Rebase dos últimos 3 commits realizados
 

Reset and stash

git reset --soft HEAD~1
git restore --staged .
git stash
git checkout development
git branch -D 'old-name'
git checkout -b 'old-name'
git stash pop
Â