V
V
Volgarastraport2015-09-14 17:09:19
git
Volgarastraport, 2015-09-14 17:09:19

How to create a Git repository for a Droplet on DigitalOcean?

There is a droplet on DO. You need to keep track of file changes.
Git selected. SourceTree client.
Created a local repository.
Generated a public key using Putty, placed it on DO in the settings.
In SourceTree I connected a private key.
I'm trying to connect hosting as an external storage using a URL of this format [email protected]:5054 and nothing... Tell me
what specific steps you need to take.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Kazantsev, 2015-09-24
@saintbyte

cd /
git init
git add *
and then take a long time to parse and change the file before each commit =)

A
ANtlord, 2015-09-24
@ANtlord

Good afternoon!
On server.
1. Go to /path/to/foler/
2. Create the out_project.git folder there
3. Go to the /path/to/foler/out_project.git/ folder
4. git --bare init
On the client.
1. Go to the project folder.
2.

git remote add origin ssh://[email protected]_host:your_port/path/to/foler/out_project.git

I don't know how to do a git remote add in the source tree, but after searching a bit I found this https://answers.atlassian.com/questions/182933/how...
It's about git init --bare.
https://www.kernel.org/pub/software/scm/git/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question