You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure the git to don't create Backup file on merge conflict
git config --global mergetool.KeepBackup false
Configure the git to create Backup file on merge conflict
git config --global mergetool.KeepBackup true
Configure git to push annotated tags automatically
git config --global push.followTags true
Custom Git Bash
Arch Based System
Install Dependencies
sudo pacman -Syu yay bash-completion
yay -Syua bash-git-prompt
Add the code bellow to ~/.bashrc
if [ -f /usr/lib/bash-git-prompt/gitprompt.sh ]; then
## To only show the git prompt in or under a repository directory
GIT_PROMPT_ONLY_IN_REPO=1
## To use upstream's default theme
GIT_PROMPT_THEME=Default
## To use upstream's default theme, modified by arch maintainer
##GIT_PROMPT_THEME=Minimal_UserHost
## list themes git_prompt_list_themes
## repository origin https://github.com/magicmonty/bash-git-prompt
source /usr/lib/bash-git-prompt/gitprompt.sh
fi
export PS1="\[\e[1;32m\][\u@\h\[\e[1;37m\] \[\e[1;33m\]\W\[\e[1;32m\]]\[\e[01;32m\]\$\[\e[0m\] "