We use app password now to allow a git client (git cola) inside a VM with linux to access our repos on Bitbucket. It's easy to set up and manage.
However, this annoying message that comes with all pushes (spam-ish) suggests it will stop working in some months.
What do I need to do to replace app password with those Api tokens for use with git ?
We do not want SSH, as it is complicated to set up and maintain.
AppPassword just worked. Can I create a new such "App token "and use it in the same manner as App passwords or its nothing like that? It's not clear what it is, except that it can be used for scripts like curl. I
Hey MrJJ! API tokens can work just like app passwords for git, but with a few changes.
What you need: Create a "Repository Access Token" (not regular API token) in your repo settings > Access tokens. Give it "Repositories: Write" permission.
How to use: Same as app passwords - your Bitbucket username + the token as password in git cola.
The downside: Unlike app passwords that worked everywhere, these are per-repository. If you use multiple repos, you'll need separate tokens for each.
Alternatively, you can create workspace access tokens that work across multiple repos in a workspace, but that's slightly more setup.
The actual git workflow stays exactly the same though, so git cola will work identically to how it does now.
I tried to make such token and i noticed the last step i was missing was the
git config user.email xxxxx@bots.bitbucket.org to be allowed to write changes back.
Also I didnt notice its per repro but now that i know it all makes more sense. Like always :)
Thank you.
Basically, just make a Token and all is explained on the actual page where you get you token.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.