Helpers and conventions for Git workflow.
Some useful commands
-
git config credential.helper store
This command stores credentials indefinitely on disk for use by future Git programs. Git Credential Store -
git branch | grep -v "develop" | xargs git branch -D
Remove all your local git branches except develop.
You can easily set up an alias for each command using git config. Git Aliases
git last
:git config --global alias.last 'log -1 HEAD'
See the last commit easily.
Prefixes with emojis for commits :
- π₯
:boom:
First Commit or MAJOR UPDATE - π
:bug:
BUGFIX - π½
:toilet:
CLEANUP - π§
:wrench:
CONFIG - π
:green_book:
DOC - π
:star2:
FEATURE - π¬
:speech_balloon:
LANGUAGE/TRANSLATION - π
:truck:
MOVE folders, files - β‘
:zap
PERFORMANCE - π
:electric_plug:
PLUG Front/Back - β¨
:sparkles:
REFACTOR - π
:lock:
SECURITY - π¨
:art:
STYLE - π
:bookmark:
TAG - π
:mushroom:
UPGRADE - π§
:construction:
WIP
Ressources :
- Complete list of github markdown emoji markup from Rafael Xavier de Souza.
- Git Commit message Emoji from François Parmentier.
- An emoji guide for your commit messages Gitmoji.
Articles :
- Bien nommer ses commits from Quentin Busuttil.