In order to find out the list of all local branches of your project make use of the git branch command,
Example:% git branch
feature/JIRA-1
feature/JIRA-B
* master
main
release
As in the above example, you do not need to pass any options, all the branches that are available locally will be displayed in alphabetical order with an asterisk (*) in front of the current branch that you are on.
βοΈPress the q button to come back to the shell from the list branch results.
More Posts related to Git,
- Change the default git branch name from master to main
- [Fixed] Git Clone git@github.com: Permission denied (publickey) Could not read from remote repository Fatal error
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- [fix] zsh: command not found: git
- How to Install Git on Windows
- Setup Git + Visual Studio Code Tutorial
- How to undo last Git Commit on Local Repository?
- Install GitHub Command Line Tool on Mac
- How to Create a Git Branch in 6 Different ways
- Fix Git: Warning: could not find UI helper GitHub.UI on Windows
- Git Config Command - A Deep Dive
- Step-by-Step: How to delete a git branch from local as well as remote origin
- How to Add Git Bash Option to Windows Terminal List
- Command to Clone Repository Using Git Bash
- How to remove or unstage a file from git staged area
- Get the file location of git config values
- GitHub: How to Search Code
- How to check your installed version of Git
- Fix: error: src refspec master does not match any failed to push some refs to Git
- Git: Step-by-Step - How to Push Local Brach to GitHub
- How to Merge Branch into Master Branch
- fix fatal: --local can only be used inside a git repository error
- Fix: Git Pull Error: unable to resolve reference refs/remotes/origin/master: reference broken
- Change the default diff or commit editor for git
- Git Fix: fatal: refusing to merge unrelated histories Error
More Posts:
- Day of the Week Finder - Tools
- How to Open TextEdit on Mac - MacOS
- How to Stop Photos App from auto loading when device connected to the Mac - Mac-OS-X
- Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Android
- Hide Navigation Bar from Android Screen Activity - Android
- Where is Maven .m2 local repository located on Mac - HowTos
- Google Webmaster : An error has occurred. Please try again later - Google
- Read/Write Java Object to a File - Java