I am trying to add remote using git remote add and than am trying to push to that remote but am getting following errors:
fatal: 'adoshi_01': unable to chdir or not a git archive
and
fatal: The remote end hung up unexpectedly
Steps followed:
- First of all I cloned from
git/repos/scripts
tohome/adoshi/repos/scripts
using commandgit clone git01.dev:home/git/repos/scripts.git
, - after doing this I looked at
home/git/devs/adoshi
folder and there were not entries for scripts and I am still wondering why. - Then I tried to add files using
git add .
- Then committed them using
git commit –am “Detailed Message”
- Added remote using
git remote add adoshi_01 git01.dev:/home/git/devs/adoshi/scripts/
- Thing to notice there is not scripts folder ingit01.dev
- Tried to push using
git push adoshi_git01 master
– But again it gave me error
I think main issue here =
On git01.dev:/home/git/devs/adoshi/
, “scripts
” folder was not created even after I cloned it in 1st and so am still wondering as to what might be the possible reason for that.
Any guidance would be highly appreciated.