I always like this practical insights:
https://daniel.haxx.se/blog/2020/11/09/this-is-how-i-git/
Exclusively use git via console with modified prompt. Same here!
scm_info(){ git_info=`git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` if [ "${git_info}" ]; then if [ "$(git status -s)" ]; then git_color='\033[1;31m' else git_color='\033[1;36m' fi echo -e "${git_color}git:${git_info}" fi } PS1='\n\[\033[1;32m\][\w] $(scm_info)\[\033[0m\]\n\$ '
My advice for beginners is: 1. Do not hesitate to bring all sort of command line tools into position. Git offers nice tools for many situations but you don’t have to use them all. 2. Branch, Branch, Branch – it will help you to go back.