{"id":258,"date":"2021-09-17T13:03:55","date_gmt":"2021-09-17T13:03:55","guid":{"rendered":"https:\/\/www.jibsheet.net\/linux\/?p=258"},"modified":"2021-09-17T16:39:30","modified_gmt":"2021-09-17T16:39:30","slug":"how-to-change-permissions-in-git-windows","status":"publish","type":"post","link":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/","title":{"rendered":"How to change permissions in git ( Windows )"},"content":{"rendered":"<p>here is a procedure to change permissions in Windows and or Linux.\u00a0 Of course, in Linux it picks it up when you add the file for commit<\/p>\n<p>git ls-tree HEAD &#8211; the first column is the permission in the index.\u00a0 You have to commit before the index is actually updated.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">C:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git ls-tree HEAD\r\n100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b    KDCA.xml\r\n100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e    LICENSE\r\n100644 blob f030b2848eb118d7f2d340fefff3f1a44c32c5f4    README.md\r\n100755 blob 49ce3b29457640658623e04a12fa95130d473a0a    daily_weather_obs_chart.py\r\n100644 blob 510d2e8a04720e80edaa0aa0810c9c287c142035    date_from_obs.py\r\n100644 blob c44f2d94ff349f6fcf17dd8bcd61ef7ef51e18a2    get_noaa_sites.py\r\n100644 blob 9244aff69514f5f1c5d9f051c3c7b59359168b0d    lambda_handler.py\r\n100644 blob 0865ae05c64ed256f796d75092e41153770de1c7    my_obs.txt\r\n100644 blob a86998acf6c2ceac23d77cdbea42078dbd638fd8    noaa_duplicates.py\r\n100755 blob 71046c12693393c31709c58b0b260a7f4ac5f85c    noaa_tidal_potomac.py\r\n100644 blob 9f7193d90758e855c57aeb78029dd7d7d1ed4cf3    noaa_tide_chart_puller.py\r\n100644 blob cb47c85479ee36fd4e14deaa183062510d442204    obs_csv.py\r\n100644 blob 98e1cc5e485d2bd70d89d09c146df43ce2cc8e7d    obs_utils.py\r\n100644 blob 7efb2534833932b2d0b35d338530e8ae1a8d87dd    obstest.py\r\n100644 blob a74d1c16cb412d5921ea67741d80e2cfd3b78c75    requirements.txt\r\n100755 blob 53f5fdfbe52acc6b0997bcfff2bed874fd63f1cc    resume.sh\r\n100644 blob d66512ad5b0febf4616f6d2fc8f634e451fdfd1a    sanity.py\r\n100644 blob 6eb9aeba1c31e4ec4a1e6dedb8b6d4ccd143bc5f    states_abbr.txt\r\n100644 blob b996baac2e436ff435ab2e329710dfe9a8399171    states_db.csv\r\n100755 blob 843f52b758420817f015d3bc6f71862a992610d2    weather_obs.py\r\n\r\nC:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git update-index --chmod 755 noaa_duplicates.py\r\nerror: option 'chmod' expects \"+x\" or \"-x\"\r\n\r\nC:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git update-index --chmod +x noaa_duplicates.py\r\n\r\nC:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git ls-tree HEAD\r\n100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b    KDCA.xml\r\n100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e    LICENSE\r\n100644 blob f030b2848eb118d7f2d340fefff3f1a44c32c5f4    README.md\r\n100755 blob 49ce3b29457640658623e04a12fa95130d473a0a    daily_weather_obs_chart.py\r\n100644 blob 510d2e8a04720e80edaa0aa0810c9c287c142035    date_from_obs.py\r\n100644 blob c44f2d94ff349f6fcf17dd8bcd61ef7ef51e18a2    get_noaa_sites.py\r\n100644 blob 9244aff69514f5f1c5d9f051c3c7b59359168b0d    lambda_handler.py\r\n100644 blob 0865ae05c64ed256f796d75092e41153770de1c7    my_obs.txt\r\n100644 blob a86998acf6c2ceac23d77cdbea42078dbd638fd8    noaa_duplicates.py\r\n100755 blob 71046c12693393c31709c58b0b260a7f4ac5f85c    noaa_tidal_potomac.py\r\n100644 blob 9f7193d90758e855c57aeb78029dd7d7d1ed4cf3    noaa_tide_chart_puller.py\r\n100644 blob cb47c85479ee36fd4e14deaa183062510d442204    obs_csv.py\r\n100644 blob 98e1cc5e485d2bd70d89d09c146df43ce2cc8e7d    obs_utils.py\r\n100644 blob 7efb2534833932b2d0b35d338530e8ae1a8d87dd    obstest.py\r\n100644 blob a74d1c16cb412d5921ea67741d80e2cfd3b78c75    requirements.txt\r\n100755 blob 53f5fdfbe52acc6b0997bcfff2bed874fd63f1cc    resume.sh\r\n100644 blob d66512ad5b0febf4616f6d2fc8f634e451fdfd1a    sanity.py\r\n100644 blob 6eb9aeba1c31e4ec4a1e6dedb8b6d4ccd143bc5f    states_abbr.txt\r\n100644 blob b996baac2e436ff435ab2e329710dfe9a8399171    states_db.csv\r\n\r\nC:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git commit -m \"changed permission\"\r\n\r\n 3 files changed, 0 insertions(+), 0 deletions(-)\r\n mode change 100644 =&gt; 100755 noaa_duplicates.py\r\n mode change 100644 =&gt; 100755 noaa_tide_chart_puller.py\r\n mode change 100644 =&gt; 100755 obs_csv.py\r\n\r\nC:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git ls-tree HEAD\r\n100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b    KDCA.xml\r\n100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e    LICENSE\r\n100644 blob f030b2848eb118d7f2d340fefff3f1a44c32c5f4    README.md\r\n100755 blob 49ce3b29457640658623e04a12fa95130d473a0a    daily_weather_obs_chart.py\r\n100644 blob 510d2e8a04720e80edaa0aa0810c9c287c142035    date_from_obs.py\r\n100644 blob c44f2d94ff349f6fcf17dd8bcd61ef7ef51e18a2    get_noaa_sites.py\r\n100644 blob 9244aff69514f5f1c5d9f051c3c7b59359168b0d    lambda_handler.py\r\n100644 blob 0865ae05c64ed256f796d75092e41153770de1c7    my_obs.txt\r\n100755 blob a86998acf6c2ceac23d77cdbea42078dbd638fd8    noaa_duplicates.py\r\n100755 blob 71046c12693393c31709c58b0b260a7f4ac5f85c    noaa_tidal_potomac.py\r\n100755 blob 9f7193d90758e855c57aeb78029dd7d7d1ed4cf3    noaa_tide_chart_puller.py\r\n100755 blob cb47c85479ee36fd4e14deaa183062510d442204    obs_csv.py\r\n100644 blob 98e1cc5e485d2bd70d89d09c146df43ce2cc8e7d    obs_utils.py\r\n100644 blob 7efb2534833932b2d0b35d338530e8ae1a8d87dd    obstest.py\r\n100644 blob a74d1c16cb412d5921ea67741d80e2cfd3b78c75    requirements.txt\r\n100755 blob 53f5fdfbe52acc6b0997bcfff2bed874fd63f1cc    resume.sh\r\n100644 blob d66512ad5b0febf4616f6d2fc8f634e451fdfd1a    sanity.py\r\n100644 blob 6eb9aeba1c31e4ec4a1e6dedb8b6d4ccd143bc5f    states_abbr.txt\r\n100644 blob b996baac2e436ff435ab2e329710dfe9a8399171    states_db.csv\r\n100755 blob 843f52b758420817f015d3bc6f71862a992610d2    weather_obs.py\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>here is a procedure to change permissions in Windows and or Linux.\u00a0 Of course, in Linux it picks it up when you add the file for commit git ls-tree HEAD &#8211; the first column is the permission in the index.\u00a0 You have to commit before the index is actually updated. C:\\Users\\jonallen\\Documents\\github\\weather_obs&gt;git ls-tree HEAD 100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b KDCA.xml 100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff\" \/>\n<meta property=\"og:description\" content=\"here is a procedure to change permissions in Windows and or Linux.\u00a0 Of course, in Linux it picks it up when you add the file for commit git ls-tree HEAD &#8211; the first column is the permission in the index.\u00a0 You have to commit before the index is actually updated. C:UsersjonallenDocumentsgithubweather_obs&gt;git ls-tree HEAD 100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b KDCA.xml 100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Jon Allen&#039;s Linux Stuff\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-17T13:03:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-17T16:39:30+00:00\" \/>\n<meta name=\"author\" content=\"jonallen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jonallen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\"},\"author\":{\"name\":\"jonallen\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"headline\":\"How to change permissions in git ( Windows )\",\"datePublished\":\"2021-09-17T13:03:55+00:00\",\"dateModified\":\"2021-09-17T16:39:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\"},\"wordCount\":58,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"articleSection\":[\"git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\",\"url\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\",\"name\":\"How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff\",\"isPartOf\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#website\"},\"datePublished\":\"2021-09-17T13:03:55+00:00\",\"dateModified\":\"2021-09-17T16:39:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.jibsheet.net\/linux\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change permissions in git ( Windows )\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#website\",\"url\":\"https:\/\/www.jibsheet.net\/linux\/\",\"name\":\"Jon Allen's Linux Stuff\",\"description\":\"Howto&#039;s, Observations, and stuff\",\"publisher\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.jibsheet.net\/linux\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\",\"name\":\"jonallen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g\",\"caption\":\"jonallen\"},\"logo\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/www.jibsheet.net\/linux\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/","og_locale":"en_US","og_type":"article","og_title":"How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff","og_description":"here is a procedure to change permissions in Windows and or Linux.\u00a0 Of course, in Linux it picks it up when you add the file for commit git ls-tree HEAD &#8211; the first column is the permission in the index.\u00a0 You have to commit before the index is actually updated. C:UsersjonallenDocumentsgithubweather_obs&gt;git ls-tree HEAD 100644 blob bc24e36afc3ccfa261f3f1bfd16de59c6059b72b KDCA.xml 100644 blob 5998e23e67758e0cf3681c079437f91c8ece445e [&hellip;]","og_url":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/","og_site_name":"Jon Allen&#039;s Linux Stuff","article_published_time":"2021-09-17T13:03:55+00:00","article_modified_time":"2021-09-17T16:39:30+00:00","author":"jonallen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jonallen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#article","isPartOf":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/"},"author":{"name":"jonallen","@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"headline":"How to change permissions in git ( Windows )","datePublished":"2021-09-17T13:03:55+00:00","dateModified":"2021-09-17T16:39:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/"},"wordCount":58,"commentCount":0,"publisher":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"articleSection":["git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/","url":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/","name":"How to change permissions in git ( Windows ) - Jon Allen&#039;s Linux Stuff","isPartOf":{"@id":"https:\/\/www.jibsheet.net\/linux\/#website"},"datePublished":"2021-09-17T13:03:55+00:00","dateModified":"2021-09-17T16:39:30+00:00","breadcrumb":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/09\/17\/how-to-change-permissions-in-git-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.jibsheet.net\/linux\/"},{"@type":"ListItem","position":2,"name":"How to change permissions in git ( Windows )"}]},{"@type":"WebSite","@id":"https:\/\/www.jibsheet.net\/linux\/#website","url":"https:\/\/www.jibsheet.net\/linux\/","name":"Jon Allen's Linux Stuff","description":"Howto&#039;s, Observations, and stuff","publisher":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.jibsheet.net\/linux\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993","name":"jonallen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g","caption":"jonallen"},"logo":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.jibsheet.net\/linux"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":1,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions\/259"}],"wp:attachment":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}