Answer the question
In order to leave comments, you need to log in
How to set up a git repository on localhost?
The GIT repository on the server worked fine for us, with the address
url = ssh://[email protected]/~/irkfm.git.
url = ssh://[email protected]/~/irkfm.git
Answer the question
In order to leave comments, you need to log in
It's not clear what you want. You already have a local version of the repository on your file system. If you want to raise a Git server, then you are here .
You don't need anything special, it works on top of regular ssh.
Here is an example:
mkdir repo
cd repo
git init
touch some-file
git add .
git commit -m 'Initial commit'
You already have a local one in the local directory ....
if you change the server, then in short:
1. Raise the Git server on the new host
2. Throw your public key rsa.pub on the new server
3. git remote set-url origin git ://your_new_repository
details here
And what prevents you from doing "delete the entry" about the non-working server repository and "add a new one", but working?
$ git remote -v
<name> ssh://[email protected]/~/irkfm.git (fetch)
<name> ssh://[email protected]/~/irkfm.git (push)
$ git remote remove <name>
$ git remote add <name> ssh://[email protected]<new_server_name>/~/irkfm.git
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question