Strong Like Bull
Strong Like Bull

Reputation: 11297

How do I git clone a GIT repository that is on a remote server to which I have SSH key access?

I can connect to my server via [email protected] without a password.

I have a project under GIT on the server at: /home/myuser/project

How do I clone this locally to whereby I can make commits etc locally and then push to this server?

As you can tell I am a GIT newbie.

Upvotes: 1

Views: 119

Answers (1)

richo
richo

Reputation: 8989

git clone [email protected]:/home/myuser/project

However, if /home/myuser is $HOME that can be abbreviated to git clone [email protected]:project

Upvotes: 2

Related Questions