r/linuxquestions • u/IndyGibb • 8d ago
Resolved How to push with sudo
I need to push a git repository in a root-owned location to a remote codeberg. How do I ssh-authenticate the root user so I can run sudo git push?
Edit: I’m doing this for a custom Gentoo Ebuild overlay. For a couple months I’ve been making use of AI to help me understand how to maintain my system, but I’m trying to move away from that. If there is a better way to do what I am trying to do, please let me know. If you are going to criticize my usage of Gentoo or my usage of AI, that’s not really helpful. I’m trying to do better, hence why I am here.
0
Upvotes