[Completes #60810630] pull latest from current Git branch and push autoupdated SHAs to that branch, whether master, non-master or a detached HEAD (Jenkins)
(m) remove dead code
add function for auto-updating SHAs only in Jenkins (i.e., when HEAD is detached)
Merge pull request #17 from JamesLavin/60810630-autoupdating-shas-via-Jenkins-or-in-non-master-branch-deploys

60810630 autoupdating shas via jenkins or in non master branch deploys