alias: Add git profile switch aliases

This commit is contained in:
Robin-Charles Guihéneuf 2020-11-01 19:24:28 +01:00 committed by Robin-Charles GUIHENEUF
parent e468e38bf3
commit 99020a5e9f

View File

@ -202,6 +202,27 @@ function gai {
git rebase --interactive --autosquash ${PARENT} git rebase --interactive --autosquash ${PARENT}
} }
# ╔═╗┬┌┬┐ ╔═╗┬─┐┌─┐┌─┐┬┬ ┌─┐
# ║ ╦│ │ ╠═╝├┬┘│ │├┤ ││ ├┤
# ╚═╝┴ ┴ ╩ ┴└─└─┘└ ┴┴─┘└─┘
function git_config {
echo "User: $(git config user.name)"
echo "Mail: $(git config user.email)"
}
function git_pro {
git config --global user.name "Robin-Charles GUIHENEUF"
git config --global user.email rguiheneuf@netatmo.com
git_config
}
function git_perso {
git config --global user.name "Robin-Charles Guihéneuf"
git config --global user.email robin-charles@hotmail.fr
git_config
}
# ╔═╗┬┌┬┐ ╔═╗┌┬┐┌─┐┌┐┌┌┬┐ # ╔═╗┬┌┬┐ ╔═╗┌┬┐┌─┐┌┐┌┌┬┐
# ║ ╦│ │ ╠═╣│││├┤ │││ ││ # ║ ╦│ │ ╠═╣│││├┤ │││ ││
# ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘ # ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘