Can't connect to any repository: https://github.com/Anand/Katalon_Git_commit.git (https://github.com/Anand/Katalon_Git_commit.git: not authorized)

Can’t connect to any repository: https://github.com/Anand/Katalon_Git_commit.git (https://github.com/Anand/Katalon_Git_commit.git:\ not authorized)

1 Like

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Git here:

Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon. Thanks for being a part of our community!

Best,
Elly Tran

The error “not authorized” when connecting Katalon Studio to a GitHub repository typically stems from authentication or configuration issues.


1. Use Personal Access Token (PAT) Instead of Password

GitHub deprecated password authentication for Git operations. Generate a PAT:

  1. Go to GitHub > Settings > Developer Settings > Personal Access Tokens.
  2. Create a token with repo scope.
  3. In Katalon Studio:
  • Username: Your GitHub username.
  • Password: The generated PAT.

2. Verify Repository URL

Ensure the URL is correct and accessible:

bash

# Test via command line
git ls-remote https://github.com/Anand/Katalon_Git_commit.git
  • If this fails, check repository existence and permissions.

3. Configure Git in Katalon Studio

  1. Go to Window > Preferences > Katalon > Git.
  2. Set the correct path to your Git executable (e.g., C:\Program Files\Git\bin\git.exe).

4. Use SSH Instead of HTTPS

  1. Generate an SSH key and add it to GitHub.
  2. Clone using SSH:

bash

git clone git@github.com:Anand/Katalon_Git_commit.git
  1. In Katalon Studio, use the SSH URL.

5. Handle SSL Certificate Issues (Corporate Proxy)

If behind a proxy, configure Git to trust the certificate:

bash

git config --global http.sslVerify false

Warning: Only do this if you trust the network.


6. Update Katalon Studio

Ensure you’re using the latest version (e.g., 10.2.0).


Step-by-Step Fix Flow

  1. Generate PAT and use it as your password.
  2. Test Repository Access via command line.
  3. Reconfigure Git in Katalon with correct executable path.
  4. Retry Cloning with HTTPS or SSH.

Common Mistakes

  • Using GitHub account password instead of PAT.
  • Incorrect Git executable path in Katalon preferences.
  • Repository URL typo (e.g., missing .git).

I tried to access https://github.com/AnandhaRajQA/Katalon_Git_commit

The URL was there.

The GitHub repository is emtpy yet.

On the other hand, @anandharaj6969 wrote:

I tried to access the URL https://github.com/Anand/

The GitHub account “anand” is there, but it has no repository yet.

Why did you create 2 GitHub account; “anand” and “AnandhaRajQA”?

Which GitHub account are you going to use from now on?

To me it seems you confused yourself.

Possibly you should remove the “anand” account.

Also, you should correct the setting of your katalon project for git. You wrote something wrong in the setting.

1 Like

Actually This is my Issue , i can’t commit

I guess, you haven’t added a SSH key to your Git account:

You should read the docs.

1 Like

@anandharaj6969 issue not resolved? have you tried above solutions