git 2.21

47 views
Skip to first unread message

luke maggs

unread,
Apr 17, 2019, 12:15:38 PM4/17/19
to git-for-windows
Previously been using Git for windows with no problems....but have recently been unable to excute any bash commands? 

e.g. touch test.txt 

touch: cannot touch 'test.txt': no such file or directory

everything looks, ok , cmd added to path etc

Running git for windows 2.21 and windows build 1809 

Any suggestions?

luke maggs

unread,
Apr 17, 2019, 12:27:30 PM4/17/19
to git-for-windows
UPDATE: 

Weirdly this seemed related to the new Windows 10 feature around securing folders/files from Ransomware 

Once enabled this seemed to break all git bash commands in windows but as soon as I disabled this setting (after much PATH investigation, uninstalling, reinstalling, diving through the forums haha!) everything seemed fine again

Just posting in case it helps anyone else 

Luke 

Philip Oakley

unread,
Apr 17, 2019, 5:58:36 PM4/17/19
to luke maggs, git-for-windows
Hi Luke,

Thanks for the notification. Is there a particular 'name' (given by
Microsoft) for this 'feature'.

Was there a specific location for switching it off (a specific control
panel), or was it via a registry setting, or something else.

The problem sounds like it could hit a lot of people.

Also, do you have the build number / version that you are currently running.

Philip
> --
> You received this message because you are subscribed to the Google
> Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to git-for-windo...@googlegroups.com
> <mailto:git-for-windo...@googlegroups.com>.
> To post to this group, send email to git-for...@googlegroups.com
> <mailto:git-for...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-for-windows/5291a790-acdc-40c1-8111-64af41b7df0d%40googlegroups.com
> <https://groups.google.com/d/msgid/git-for-windows/5291a790-acdc-40c1-8111-64af41b7df0d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Philip Oakley

unread,
Apr 18, 2019, 7:26:58 AM4/18/19
to luke maggs, git-for-windows
Hi all,

looks like it's "Controlled folder access
<https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-exploit-guard/controlled-folders-exploit-guard>[1]"
described here
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-exploit-guard/enable-controlled-folders-exploit-guard.

Didn't follow it further at this moment (too much other 'real life' to
deal with..)

I searched on Luke's exact phrase "new Windows 10 feature around
securing folders/files from Ransomware", always a useful trick...

Not sure of how it got turned on for Luke in the first place (some AV
(anti-virus) update or network policy change?) but good that the cause
and (local) fix has been found.

Philip

[1]
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-exploit-guard/controlled-folders-exploit-guard
Reply all
Reply to author
Forward
0 new messages