nix-community/nix-on-droid

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

Greenarrow4245 opened this issue · 12 comments

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

Is this related to #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 :)

Is this related to #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

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

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

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

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

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

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

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

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

#356

Why do you create 3 issues for your problem?

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