How to provide write access to GIT repository for a user

agrawalneha92
Kilo Contributor

Hi,

I am not able to commit the changes to GIT repository. The error is provide write access to the repository.

From where to provide the write access

4 REPLIES 4

Chuck Tomasi
Tera Patron

If you want to grant another user access to your repo, you have to do this on GitHub (assuming GitHub and not another Git related repo.)



Open the repo


Go to Settings


find_real_file.png


Go to the Collaborators menu option on the left.


find_real_file.png


Enter the email address of their GitHub account to invite them


find_real_file.png



The system will send them an invite and add them to the list above.


Hi Chuck...Thanks for the response.


I do not want to add any other user to my repo.


I would like to provide WRITE access to myself only as I am getting the following error message when I am trying to committ the changes to the repo or trying to create a branch.


find_real_file.png



I am new to ServiceNow and exploring it based on the learning documents provided in the portal.



Thanks,


Neha


Thank you for the clarification Neha and sorry about the confusion.



Is it your Git repo or does it belong to someone else?



If it is yours, it should default to read/write. If someone else owns it, then they will need to modify your access in Git. This doesn't appear to be a ServiceNow specific issue.


Chuck,

As this does not show answered, I will add my problem to the queue.

Other admins and I are getting this same error when trying to publish an application in SN Studio. We are using Bitbucket (owned by Atlassian). I have opened tickets with Atlassian, who after extensive troubleshooting, does not feel it is their error. Here are the details of my applications and how I am having to publish:

  • I show as admin for my repositories on Bitbucket
  • When I try to publish, I get the error stated at the top of this post
  • I then go to Bitbucket and change my password
    • I change my password back to the original so I do not have to change it in SN
  • When I publish again, it works
  • The very next day, I try to publish more changes and get the error

As mentioned, I have verified that I am an admin on the repository. I have tried just retyping my password in SN Studio for the application, but still cannot get it to work without changing my repository password.

I have looked at numerous logs and found nothing. Do you know where I can look for clues on this?

I plan to start a Hi ticket as well.