Git is a local/distributed source control system so you can work and commit offline on your own system.
For teams you want to share your code, so you need a shared repository, so you can use GitHub or Visual Studio online for this.
If you want to be completely local you can install your own Git server like :
http://gitblit.com/[
^]