Autocomplete Commands in Git

How can we get autocompletion of Git commands on the command line the same way we can do it with file and directory names? Git has native support for autocompletion but we just need to install it.