Skip to content

Instantly share code, notes, and snippets.

@uaibo
Last active August 8, 2022 13:21
Show Gist options
  • Save uaibo/9e268af62853fdd64bef2f2730bbcd42 to your computer and use it in GitHub Desktop.
Save uaibo/9e268af62853fdd64bef2f2730bbcd42 to your computer and use it in GitHub Desktop.
Add acces for yourself to bitbucket repo.
1) Generate your app password & grant access to Repositories
https://bitbucket.org/account/settings/app-passwords/
2) sudo nano .git/config
3) Add the following content
[remote "origin"]
url = https://{YOUR_BITBUCKET_USERNAME}:{APP_PASSWORD_YOU_HAVE_GENERATED}@bitbucket.org/{COMPANY_NAME}/{REPO_NAME}.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
4) Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment