loading...

Automate version control for publishing

mafflerbach profile image mafflerbach ・1 min read

This is the fourth part of my Publishing workflow Series. I want to use git as versioning tool. After I published my new article I want to commit my new addition and push it directly to my github repository. This is a very small change to my helper.sh

commitMessage="Published -$fileName-"

git add . 
git commit -m"$commitMessage" 
git push

Enter fullscreen mode Exit fullscreen mode

I just generate a small commit message add all the changes in the repo and push it to my remote.

Discussion

pic
Editor guide