tdub2012
tdub2012

Reputation: 103

Connect to Bitbucket without cloning

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

Answers (2)

PinnyM
PinnyM

Reputation: 35541

You are looking for remote add:

git remote add origin [email protected]:your_account/your_repo.git

Upvotes: 5

taiansu
taiansu

Reputation: 2785

I guess this might work.

  1. open a Empty folder
  2. git init
  3. git add remote remote_name remote_address
  4. git fetch remote_name
  5. add your change by create new one
  6. git add your file
  7. `git commit -m "commit message"
  8. git push remote_name

Upvotes: 2

Related Questions