gitHow to show current branch
Usage example
git branch
output
test1
* test2
main
More of Git
- How to rename local branch
- How to undo "git add" before commit
- How to view project's detailed history
- How to delete all local branches which has been deleted on the remote
- Remove an existing remote
- How to install git on Ubuntu 22.04
- Make a new branch with uncommitted changes
- How to revert repository back to last commit
- How to update forked repository from master
- How to get the repository (remote) url
See more codes...