gitHow to show current branch
Usage example
git branch
output
test1
* test2
main
More of Git
- How to remove specific remote branch locally
- Make a new branch with uncommitted changes
- How to view diff with stashed files
- How to untrack a file
- How to check patch (dry-run) before applying it
- How to undo "git add" before commit
- Stash current changes without commit
- How to rename local branch
- How to push new tag
- How to rollback to specific commit
See more codes...