So, this is my first time making a website, using git, and the such.
i was trying to use git as a way of updating my website. i was told to do the following:
git remote add live ssh://user@domain.com/absolute-path-to-site
followed by:
git push live master
when i tried pushing i got the following message:
fatal: '/absolute-path-to-site' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
i figured i did something wrong and tried backtracking by using
git remote rm ssh://user@domain.com/absolute-path-to-site
well it doesn't let me remove the path, I get:
error: Could not remove config section 'remote.ssh://user@domain.com/absolute-path-to-site'
I can't really find anything to help my with this situation (or I'm not looking right) please help.
You can try to remove the remote manually in .git/config
, remove the part like this:
[remote "live"]
url = ssh://username@fireplug.dreamhost.com/dev.website.com/wp-content/themes/astrid
fetch = +refs/heads/*:refs/remotes/live/*
Then save the config file, and use git remote -v
to double check if it removed or not.