Git by default dont provide autocompletion,sometime its really seems boring to write the whole branch name or command.
Couple of days ago Rubayeet shared the way to activate it.
Go to this link ,copy the content of the file and save it as .git-completion.sh and add the path of the file to your bash profile.
And compile the bash profile by using following command:
Write any git command and then press tab(like unix autocomplete)
you will see the branch name or command is automatically completing or showing suggestion like below
Happy coding 🙂