How can I view the branch history and check the current branch status using Git commands in the VSCode terminal?
I would like to know the Git commands to:
- View the commit history of the current branch.
- Check the current branch status (which branch you’re on and if it’s ahead/behind the remote).
- List all merged branches.
I’ve used basic Git commands like git log and git status, but I need more detailed information, specifically a concise and formatted view of the branch history.
New contributor
SAI RAM is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1