Git autocomplete is asking for a password, not sure why

After discussing in the comments about possible solutions to do with possibles aliases in .bashrc and anomalous environmental variables, we came to the conclusion that the problem lay in the .bash_aliases file, which contained the line:

alias test="ssh [email protected]"

This was logical, as I tested the .bashrc provided and it worked perfectly without the error occuring, so the problem had to lay in another file.

This confirmed my initial suspicion that the issue was something to do with ssh, as the error:

Pseudo-terminal will not be allocated because stdin is not a terminal

only occurs when ssh is concerned, as noted here at Ubuntu forums and here at Stackoverflow. Therefore it seemed that there was no bug in bash autocomplete or git, and so the problem was discovered.