Use own username/password with git and bitbucket

后端 未结 7 1725
难免孤独
难免孤独 2020-12-07 13:08

I\'m in a team of three; two are working locally, and I am working on the server.

My coworker set up the account, but gave me full privileges to the repository.

7条回答
  •  萌比男神i
    2020-12-07 13:47

    Well, it's part of BitBucket philosophy and workflow:

    • Repository may have only one user: owner
    • For ordinary accounts (end-user's) collaboration expect "fork-pull request" workflow

    i.e you can't (in usual case) commit into foreign repo under own credentials.

    You have two possible solutions:

    1. "Classic" BB-way: fork repo (get owned by you repository), make changes, send pull request to origin repo
    2. Create "Team", add user-accounts as members of team, make Team owner of repository - it this case for this "Shared central" repository every team memeber can push under own credentials - inspect thg repository and TortoiseHg Team, owner of this repository, as samples

提交回复
热议问题