nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

Somehow I got git to work but everytime I use git push it asks for pat token and username someway to bypass #355

Closed Greenarrow4245 closed 1 month ago

Gerschtli commented 1 month ago

Is this related to https://github.com/nix-community/nix-on-droid/issues/354?

There is no way to bypass authentication when pushing to a git repo. You need to set up your authentication (ssh key or http username and password) correctly.

Also this does not sound like a nix-on-droid problem but rather a ssh setup issue.

In general, try to be as precise as you can when asking for help. It is not clear which exact commands you are executing, what your setup looks like and what exactly you want to achieve. If you never worked with git before, please research on your own or ask in forums like stack overflow, because we do not want to provide a guide on how to use ssh. That has been done already by a lot of other people in the internet :)

Greenarrow4245 commented 1 month ago

Is this related to https://github.com/nix-community/nix-on-droid/issues/354?

There is no way to bypass authentication when pushing to a git repo. You need to set up your authentication (ssh key or http username and password) correctly.

Also this does not sound like a nix-on-droid problem but rather a ssh setup issue.

In general, try to be as precise as you can when asking for help. It is not clear which exact commands you are executing, what your setup looks like and what exactly you want to achieve. If you never worked with git before, please research on your own or ask in forums like stack overflow, because we do not want to provide a guide on how to use ssh. That has been done already by a lot of other people in the internet :)

I forgot stackoverflow but using cat .gitconfig my credentials are correct

Gerschtli commented 1 month ago

Please provide more information besides stating that your config is correct. Otherwise, nobodycan help you.

Greenarrow4245 commented 1 month ago

Please provide more information besides stating that your config is correct. Otherwise, nobodycan help you.

Other than that in termux there was an ghauth that made me able to push to my repo without entering password

Gerschtli commented 1 month ago

Did you try setting up this ghauth on nix-on-droid if it worked on termux?

Greenarrow4245 commented 1 month ago

Did you try setting up this ghauth on nix-on-droid if it worked on termux?

I tried searching for it on nix on droid I got into a loop where it would say do --experimental-features nix-command but it gives another but instead of nix-command it says flake and I do that then the first error and I didn't find it on nixos pkgs on web

Gerschtli commented 1 month ago

If you want to enable both experimental features, you need to set --extra-experimental-features "nix-command flakes" when using the nix command.

Greenarrow4245 commented 1 month ago

If you want to enable both experimental features, you need to set --extra-experimental-features "nix-command flakes" when using the nix command.

same error and gh is a thing in nix on droid I have setup using ssh and still no luck

Gerschtli commented 1 month ago

Please show the exact commands and their outputs, I don't want to guess what you are doing.

Greenarrow4245 commented 1 month ago

Please show the exact commands and their outputs, I don't want to guess what you are doing.

356

Gerschtli commented 1 month ago

Why do you create 3 issues for your problem?

Greenarrow4245 commented 1 month ago

Why do you create 3 issues for your problem?

apologies, I'm using github mobile it's very difficult to use it. I'm trying getting use to it