'After git commit, push then command line are changed

I just commit with message that "blah blah ~ ... in wip". and command changed like below picture. before the commit it wasn't and blank on this here. has anyone know this why happened? enter image description here



Solution 1:[1]

Your shell is showing the current state - Your workspace (~/Doc/G/ecg-dbn) and Current git branch (master wip).

According to this answer, to remove it, you can try adding export PS1=xxxxx to ~/.zshrc, if you are using zsh

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jloh