Reputation: 103
Sorry, I am still learning git so this is probably a very basic question. But how to I connect to a remote repository without cloning it so that I can commit/push to the repo.
Upvotes: 2
Views: 6327
Reputation: 35541
You are looking for remote add
:
git remote add origin [email protected]:your_account/your_repo.git
Upvotes: 5
Reputation: 2785
I guess this might work.
git init
git add remote remote_name remote_address
git fetch remote_name
git add your file
Upvotes: 2