How to change permissions in git ( Windows )

here is a procedure to change permissions in Windows and or Linux.  Of course, in Linux it picks it up when you add the file for commit git ls-tree HEAD – the first column is the permission in the index.  You have to commit before the index is actually updated. C:\Users\jonallen\Documents\github\weather_obs>git ls-tree HEAD 100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b KDCA.xml 100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e […]

Using git to reset file

So, you were editing a file on production machine to debug an issue.  Once you are finished you want to reset it back to what was in git. delete the file. 2. git checkout HEAD <filename> This will restore the file to the last pull or fetch. v( local git repository ) However, when you pull again.  it will show […]