So im trying to automatically push all commits that get created with etckeeper to my Github Repository. Everytime I make a change in the /etc directory, etckeeper creates a commit. I have created a script that automatically pushed these commits to my repository. Here is the script:
#!/bin/sh
set -e
sudo git -C /etc push -u origin master
So now when I install something or manually type
sudo etckeeper commit "message"
it instantly pushes this commit. But there is one problem. Everytime it asks for my username and password. And when I just skip these or just write random stuff in it, it still pushes. So I actually don't really know why it asks me for my credentials. Can somebody help me?
So I actually don't really know why it asks me for my credentials.