Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 447151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:32:30+00:00 2026-05-12T21:32:30+00:00

Often when I do a checkout of a different branch, or a reset, I

  • 0

Often when I do a checkout of a different branch, or a reset, I will get ‘permission denied’ errors from windows for one to a dozen files – but the particular files vary from run to run. Here’s the output from a test I just did, with GIT_TRACE=1. The trace only added the one line before the error message:

$ git checkout master
trace: built-in: git 'checkout' 'master'
error: git checkout-index: unable to create file dotnet/src/myfile.cs (Permission denied)
D       dotnet/src/myfile.cs
Switched to branch "master"

I’m pretty sure this is some race with a virus scanner or other indexing service on my machine. If the race persisted, I could use sysinternals to see what process has the file handle open. However, it happens very quickly, and I’m not aware of a tool that will show me this conflict. Surprisingly, I haven’t found anyone describing similar behavior.
How do I make these errors stop, or diagnose the problem further?

I’m specifically looking to end the file access race by identifying whatever process is doing the simultaneous access. So suggestions for a tool that shows which process has a file locked when an edit is denied would be very helpful. I’m aware of ‘unlocker’ and similar tools which will show me what process holds a file locked for a period of time. This doesn’t work for this issue, because the process keeps the file locked for a very short period. So the tool needs to collect the appropriate data without my intervention, as I’m too slow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:32:31+00:00Added an answer on May 12, 2026 at 9:32 pm

    Disabling UAC Virtualization seems to have fixed the problem.

    See http://code.google.com/p/msysgit/issues/detail?id=320

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Often while editing config files, I'll open one with vi and then when I
Often I find myself interacting with files in some way but after writing the
Often WinDbg will enter a state where it is *Busy* performing an operation. Often
Often, I find myself wanting to write a unit test for a portion of
Often we need to add a non-nullable column to a table, and it is
Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
Often time I need to add a control to a dialog after the dialog
Often, programmers write code that generates other code. (The technical term is metaprogramming ,
Often multiple applications share a large codebase of libraries that change often in development.
Often when I post a comment or answer on a site I like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.