I've been having an issue with git. When I execute a command it will push me out of the working directory and into the parent directory. This happens somewhat frequently, maybe 25% of any git command
So I will do something along the lines:
$user at ubuntu-machine in /var/www/project/name: git add .
$user at ubuntu-machine in /var/www/project/name: git commit -m "Git message"
$user at ubuntu-machine in /var/www/project/name: fatal: Not a git repository
I'm currently running Ubuntu 16.04 with git version 2.7.4.
Has anyone else had this issue? Possible reasons why it's happening?
Any help is appreciated, thanks