how to automate the “pull-and-push” process? (git) Username and Password authentication
So i have written a bash file as below, but after the process the other git server prompts for username and password as authentication, how do i write that script. Also if my current script is ok? manually everything works fine
#!/bin/bash
cd /home/****/Desktop/test
git clone --bare https://gitlab.com/***/pullpush.git
cd /pullpush.git
git push --mirror https://ip_address/***/test-project.git