It would seem I’ve installed git in the following directory:
/root/bin/git
(Not quite sure how, to be honest.)
And therefore rendered git unaccessible to anybody other than the root user.
Can I simply move the files to /usr/bin (or similar) or do I have to uninstall and reinstall.
If uninstall is required, how should I do that?
In many system
$HOME/binis put to$PATHusing either.bashrcor/etc/bashrc. Thats why in your case onlyrootcan able to access git as its installed inroots home. But no one else.The only solution is to remove that git. Install git system wise.
or
If git was installed in
/rootas prefix you might findusr,etc,libetc directories in/rootfolder. Remove them too. Also make sure any other software didn’t get installed like git.