I am new with raspberry pi. Actually I am coming from Java background. Which programming should I use for raspberry pi tasks? The choices are given below:-


Java
Python


Kindly suggest me which one of them should I choose?


Question: Getting the sha1 of a desired commit from a remote repository
Answer: If you want the SHA1 of a particular branch, you could try 

git ls-remote &lt;URL&gt; &lt;branch name&gt;


or, if the branch name pattern is ambiguous and you want more control, maybe something like:

git ls-remote &lt;URL&gt; | grep refs/heads/&lt;branch name&gt;


or something like that. It also works for tags, but it looks like not much else.