I am developing word and excel macros, however to keep revision control and track changes I would like to use GitLab
So what I have done so far is to have a code which export out all vba code to a folder on my PC(Z:/Dokumentstyring/GIT), when I run my publish sub routine:
Private Sub publish()
' Here I would like to automatically push the code to GIT
Then I manually go into git shell and type:
git config --global user.name "xxxxx"
git config --global user.email "firstname.lastname@example.org"
git remote add origin xxxxxx/xxx/Dokumentstyring.git
git add .
git commit -m "Version Number - Date and a short comment"
git push -u origin master
Is there a way that I can get my publish routine todo this manually work for me?