1

I am facing git config issues for last couple of days before that i done lot of commits and pull but this time getting this error.

git-upload-pack not permitted on

error

Please help me to get this issue resolved.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Jay
  • 13
  • 2
  • Note that github no longer support https for write access, you have to use ssh - see [here](https://stackoverflow.com/a/68802292/2670892) – greg-449 Aug 18 '21 at 11:53
  • @greg-449 It does support it if you use as password a token. I push using https all the time. – VonC Aug 18 '21 at 14:46
  • @VonC So what changed on August 13th? I read [this](https://stackoverflow.com/a/68802292/2670892) as saying that doesn't work anymore. – greg-449 Aug 18 '21 at 15:42
  • Did changing the java client work? – VonC Aug 19 '21 at 06:57
  • @VonC - In future can I change password as per my wish? or always I need to use the same access token for every time? – Jay Aug 19 '21 at 14:15
  • @Jay I have edited my answer to address your last comment/question. Let me known if this is clear enough. – VonC Aug 19 '21 at 14:19

2 Answers2

0

As mentioned in this thread:

EGit supports two different HTTP clients: by default it uses the Apache libraries, but it can also use the JDK built-in HTTP client

I had exactly the same issue with eclipse 2020-12.
In Preferences->Git I changed "Http Client" to "Java built-in HTTP" and the issue is resolved.

As noted in the comments, you need to use a PAT (Personal Access token) as password now.

As I explain here, you can then change your GitHub password as many time as you want.
Your token (unless it has an expiration date, which, by default, is 7 days, but can be changed at creation) will remain valid.

Conversely, you can revoke a token, without having to change your main password.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Where can i find Preferences->Git ->HttpClient? I have tried to find.. can you share a snapshot? – beingshuchi Dec 09 '21 at 12:53
  • @beingshuchi Maybe the preferences have changed, or they depend on a plugin (JGit/Egit) that you might not have. In any case, you can just type HTTP Client in the preference search field, and it will show you every occurrence of that setting. – VonC Dec 09 '21 at 13:23
0

@greg-449 It does support it if you use as password a token. I push using https all the time.

Hi Greg and VonC,

The above method worked for me. I have generated a token key in git and i used that as a my password. now i can do push and pull operations.

Thanks a lot for your help!

Jay
  • 13
  • 2