Skip to content

Instantly share code, notes, and snippets.

View RockiRider's full-sized avatar

Tsotne Gvadzabia RockiRider

View GitHub Profile
@RockiRider
RockiRider / commands.sh
Last active April 2, 2024 14:25
Useful Git setup
## Undo's your latest commit
git config --global alias.undo "reset HEAD~ --hard"
## Create a new branch and checkout to it
git config --global alias.cob 'checkout -b'
## Stage and Commit
git config --global alias.save "!add -A && commit -m"
## No need for set-upstream on new branches