How can I git push with app password on a Mac OS using https and terminal bash

JERRY MCLAUGHLIN March 6, 2022

I'm on a Mac OS

I'm using the terminal (bsh)

I have all my repos on the Mac and they were working before the change

I have cleared any passwords or credentials in keychain

I do not want to issue pull commands in my repos

How can I implement an app password (preferably globally) to enable

$ git push origin main

and not get an error (right now it is a 403 error)

Thanks,

 

 

1 answer

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

Hi Jerry,

I see that you created a support ticket for this issue, I just wanted to post a reply here for any other users also who may come across your post.

Apart from the 403 error, it's important to look at any other messages in the output that may provide additional info on why the error occurs. If the output includes the message

Your credentials lack one or more required privilege scopes.

this means that the app password doesn't have the necessary permissions for the operation that is performed.

If the app password is used only for git clone, git pull and git push operations, then the permissions Repositories:Read and Repositories:Write are needed.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events