I'm trying to update a git repository on system startup.
I called a Script from /etc/rc.local
which is executed.
In that script I do the following steps:
1) Enter the folder where repo was cloned to 2) Do a git pull in that folder in two different ways 1st way simple git pull > /home/user/result.txt (doesn't work) 2nd way git --git-dir=/home/pi/gitrepo/.git pull origin master > /home/user/result.txt
What do I need to do to get this working? Also tried to test if internet connection is already available with a simple wget which was successful
Thanks in advance