giteclipseegit

Getting the following error while doing pull and push operations (git-upload-pack not permitted on )


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.


Solution

  • 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.