3 ms·
For the manual approach, git provides a shell script to generate the env var __git_ps1 for this very purpose.[1] [1]: https://git-scm.com/book/id/v2/Appendix-A
by Jenk 5y ago
For the manual approach, git provides a shell script to generate the env var __git_ps1 for this very purpose.[1]
[1]: https://git-scm.com/book/id/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash https://git-scm.com/book/id/v2/Appendix-A%3A-Git-in-Other-En...