The Git command takes me out of the current directory to the parent directory
I have a problem with git. When I execute the command, it pushes me out of the working directory and into the parent directory. This happens a little more often, perhaps 25% of any git command
So, I'll do something line by line:
$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 am currently running Ubuntu 16.04 with git version 2.7.4.
Has anyone else had this problem? Possible reasons why this is happening?
Any help is appreciated, thanks
+3
source to share