git - How to merge my local repository with remote repository on bit-bucket? -


i developing open-stack project available on github. team-mates downloaded on local system , make remote repository on bit-bucket, want synchronize bit-bucket repository on remote. updated repository on local system, how that. done

[vagrant@localhost horizon]$ git remote rm origin [vagrant@localhost horizon]$ git remote add origin ssh://git@bitbucket.org/user_name/repo_name.git [vagrant@localhost horizon]$ git push -u origin master warning: permanently added rsa host key ip address '131.103.20.167' list of known hosts. permission denied (publickey). fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

just add new bitbucket repository remote.

git remote add neworigin <bitbucket-repo-url> 

you can fetch , merge,

git fetch neworigin git merge neworigin/<branch> 

if want name origin have rename or delete existing remote.

you need make sure have added ssh key account. read here on how add ssh key in case not have public key. can generate (inside .ssh directory present in home directory),

ssh-keygen -t rsa -c "hello@world.com" 

update

you using ssh protocol, use https url. ask username , password.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -