Git and Bitbucket without SSH

前端 未结 4 930
Happy的楠姐
Happy的楠姐 2021-02-02 09:13

I\'ve set up a local git repository on my computer, and I\'m trying to push that to a newly created Bitbucket account.

The problem is that Bitbucket gives me an s

相关标签:
4条回答
  • 2021-02-02 09:29

    You can connect to GitHub and Bitbucket repositories via HTTPS. Both will also let you push.

    These are the typical URLs for HTTPS access:

    https://username@bitbucket.org/username/repository.git
    https://github.com/username/repository.git
    

    Note that Git will prompt you for your password whenever you want to communicate with the remote.

    0 讨论(0)
  • 2021-02-02 09:37

    I wanted to add that SourceTree somehow wants it without the username:

    https://bitbucket.org/username/repository.git
    
    0 讨论(0)
  • 2021-02-02 09:37

    Https addresses on GitHub are read-only. As far as I know, SSH is your only option if you need write access. See poke's answer.

    Btw your slashes are wrong, it's ssh:// and https://

    0 讨论(0)
  • 2021-02-02 09:54

    Have you tried using?

    git@bitbucket.org:accountname/reponame.git
    

    You may take a look here

    0 讨论(0)
提交回复
热议问题