Where I work many people use the same computer on the same account. We now use the shell instead of the GUI just for convenience.
The first time someone committed it asked for their username and password, but after that just used their account for all commits. I'm sorry that I don't know much about the shell, but this is the first time I'm using it. The commands I use to commit and synchronise are:
git commit -a
git push origin [branch name here]