Still learning git and trying to use it for daily work, in this respect, I have a repository on a Linux cluster where there is no backup(this works with an ssh protocol) and I would like to move it to another server where there are nightly backups, however, I am not successful up to this point(and this one works with https protocol).
What I did was to add the new remote location with
git remote add <name> https://server.info/directory.info
and I investigated that my new remotes are there with
git remote -v
then I tried to create an empty git repo on the server which I mounted with sshfs, however there I got the below messages with git init
error: could not commit config file
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/config
error: could not commit config file
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/config
error: could not commit config file
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/config
error: could not commit config file
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/config
error: could not commit config file
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/config
Initialized empty Git repository in
/home/utabak/webDataTU/staff-homes/t/utabak/vibroSys/.git/
Then I tried to push the local repository that I pulled from the original repo with
git push webDataTU master
and got
fatal: https://path.info/info/refs not found: did you run git
update-server-info on the server?
subsequently, I did on the server side
git update-server-info
And tried
git push webDataTU master
and got the same error again.
Where is my mistake?