Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

i have an error during puch code

Edited

$ git push origin master
remote: Forbidden
fatal: unable to access 'repo_url': The requested URL returned error: 403

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 05, 2022

Hi @Developer and welcome to the community.

First, I wanted to give you a heads up that I removed the repo URL from your post for privacy reasons.

Regarding the issue you are facing:

1. I noticed that the repo URL in the output does not include your username. If you run the following command in the directory of your clone:

git remote -v

do you see your Bitbucket username listed in the URL?

If not, I would suggest changing this URL to include your username. E.g. if the output of the command git remote -v is something like this:

origin https://bitbucket.org/<workspace-id>/<repo-slug>.git (fetch)
origin https://bitbucket.org/<workspace-id>/<repo-slug>.git (push)

You can change it to include your username with the following command:

git remote set-url origin https://<Bitbucket_username>@bitbucket.org/<workspace-id>/<repo-slug>.git

where
<Bitbucket_username> replace with your Bitbucket username
<workspace-id> replace with the workspace id that owns this repo
<repo-slug> replace with the reposiotry slug, which in this case is the repo name

If your remote's name is other than origin, then replace the name origin with the name of your remote.

2. If the issue persists after you make this change, I would suggest checking for any stored credentials for bitbucket.org if there is a credential manager on your computer, and remove them.

Then, next time you push, you should be asked for a password and you can provide either your account's password or an app password with permissions to write to repositories.

Please feel free to let me know how it goes.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events