I sometimes use my local git repository to track changes I make before submitting it to our official project git repository.
I'm doing the same thing for a new project on a Ubuntu 16.04 machine now, but this time, because the working directory and my local repository is in the same hard disk (both in /dev/sdb1), if the hard disk fails, I won't be able to recover the data. This makes me feel uneasy, so I thought I should move the repository to another machine I own(It's Centos 6.9 machine) because I don't have another hard disk installed in the Ubuntu current machine.
So I tar'ed the ProjS.git directory (repository) from the Ubuntu machine, and ftp'd it to my CentOS machine and untar'ed it on /home2/repos.ProjS.git in the CentOS machine. And in the ubuntu machine's ~/testgit directory, I tried
ckim@chan-ubuntu:~/testgit$ git clone ssh://ckim@129.254.xxx.yyy/home2/repos/ProjS.git/
Cloning into 'ProjS'...
ckim@129.254.xxx.yyy's password:
fatal: protocol error: bad line length character: ----
ckim@chan-ubuntu:~/testgit$ fatal: The remote end hung up unexpectedly
The CentOS mahcine has never been used as a git repository for external machines. (But it had served as git repository for internal users, actually the same user me). In this case, what should I do? (maybe I should give access permission to myself.)