-2

I downloaded files from original git repo, modified them and uploaded them to my own repo. Now, when I clone original repo, it does not ask for username and password, but when I clone my repo it asks. But I dont want to ask, how can it be fixed?

Actual repositories:

P.S.: My own repo is public as well as the original one.

torek
  • 448,244
  • 59
  • 642
  • 775
  • Is your personnal repo private? – Raida Mar 31 '22 at 14:24
  • no, it is public. – Ilgar Rasulov Mar 31 '22 at 14:26
  • 3
    We can't tell for sure without knowing more details, but in the meantime go ahead and Google for "don't ask for password when cloning a Git repository" and see if any of the dozens of articles that show up help. Here's one right here on StackOverflow: https://stackoverflow.com/questions/34099843/git-clone-without-asking-for-users-password – Andy Lester Mar 31 '22 at 14:29
  • 1
    Is [this](https://docs.github.com/en/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password) helping you? – Raida Mar 31 '22 at 14:29
  • I just changed 2 text files from the original repo and pushed all files to my own repo. that is it. I fear that when I pushed to my repo, it took credentials from my pc. – Ilgar Rasulov Mar 31 '22 at 14:31
  • `no, it is public` <= well git is actually behaving as if it is not. Since all of this is supposed to be public, uris to the actual repos would help to rule this out. Add them as an edit to your question. – Zeitounator Mar 31 '22 at 14:33
  • both repos use https – Ilgar Rasulov Mar 31 '22 at 14:34
  • Original repo: https://github.com/dusty-nv/jetson-inference My repo https://github.com/eligosoftware/jetson_inference – Ilgar Rasulov Mar 31 '22 at 14:35
  • [I can't reproduce your issue](https://gist.github.com/zeitounator/af3869e7febab74224bac1ad125d2732) – Zeitounator Mar 31 '22 at 14:42
  • After clearing global credentials and restarting it doesn't ask for username and password. – Ilgar Rasulov Mar 31 '22 at 14:46
  • The original repository *is* public and yours *is not* public. (Create a private-browsing window in whatever browser you like that has private browsing, and try to access your own repository on GitHub, and you'll get a 403 error because it's only available to *you*.) – torek Mar 31 '22 at 22:06

1 Answers1

-2

After clearing global credentials and restarting it doesn't ask for username and password.

  • 1
    This behavior sounds system-dependent. But you have not told us what system you are running. So this Q and A is unlikely to be helpful as it stands. Moreover, there is no programming here; the entire discussion sounds like a better candidate for SuperUser or similar. – matt Mar 31 '22 at 14:50
  • the system I use was Jetson Nano on ubuntu based OS – Ilgar Rasulov Mar 31 '22 at 15:08