mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 12:34:21 +01:00
16 lines
472 B
Bash
16 lines
472 B
Bash
# Set common git aliases
|
|
git config --global alias.co checkout
|
|
git config --global alias.br branch
|
|
git config --global alias.ci commit
|
|
git config --global alias.st status
|
|
git config --global pull.rebase true
|
|
|
|
# Set identification from install inputs
|
|
if [[ -n "${OMAKUB_USER_NAME//[[:space:]]/}" ]]; then
|
|
git config --global user.name "$OMAKUB_USER_NAME"
|
|
fi
|
|
|
|
if [[ -n "${OMAKUB_USER_EMAIL//[[:space:]]/}" ]]; then
|
|
git config --global user.email "$OMAKUB_USER_EMAIL"
|
|
fi
|