15773

how to allow the access of git/config in mac os?

<h3>Question</h3>

I having this problem because when I run flutter doctor it says . btw I'm using mac os

Failed to find the latest git commit date: VersionCheckError: Command exited with code 128: git -c log.showSignature=false log -n 1 --pretty=format:%ad --date=iso Standard out: Standard error: warning: unable to access '.git/config': Permission denied fatal: unable to access '.git/config': Permission denied

I ask this question in this link but one person said that I should check the user and I see that I'm the user registered there. I think I need to go to git folder and allow permission in properties but I don't know to get into git folder in mac os


<h3>Answer1:</h3>

The .config folder is supposed to be owned by the user. It appears that the ownership got changed to system by mistake on your machine.

With following command, you can <em>restore</em> the <em>default permission</em> on your MacOS:

sudo chown -R <username> .config

(Substitute <username> with your username. You can find your username as follows: whoami)

When prompted for a password, enter <em>your</em> login password.

来源:https://stackoverflow.com/questions/61811373/how-to-allow-the-access-of-git-config-in-mac-os

Recommend

  • Define PHP-Function in XSL and calling it. Possible? How?
  • Simulate a table with multiple rows just with SELECT statement
  • string replace backslash with slash
  • Why is display:initial not working as expected?
  • How to create jQuery datatable with multiple child rows(nested table)?
  • Can I have a composite shape as a resource in WinRT XAML?
  • Why does the same exact query produce 2 different MySQL explain results?
  • Shared Forms Auth cookie not working on subdomain
  • In Bootstrap 3's table-responsive when below breakpoint dropdown menus can't be used, any
  • Starting Bootstrap tour with a button after ending tour once
  • How to set title name of the pdf. While viewing the Document(New Tab)
  • Adding items to an already existing jlist from another class
  • No mapping data was returned from the server after installing ASP.NET and Web Tools 2012.2 Update
  • Parsing a complicated array with GetJSON Jquery
  • I have a problem with the Fetch API using Internet Explorer 11
  • Octave code for gradient descent using vectorization not updating cost function correctly
  • Dynamic reference casting depending on actual object type
  • Firebase suddenly reports invalid signature
  • Shopify Custom Payment Gateway Implementation
  • Azure NodeJS Error: ENOENT, open 'D:\\home\\site\\wwwroot\\bin\\views\\'
  • How to move to lines with the same indentation in Visual Studio Code
  • Swift: UIView.animate works unexpectedly
  • Separating definition/instantiation of template classes without 'extern'
  • How can i move Clearcase dyamic/snapshot views to another host (Linux)
  • Dynamic XML Schema Validates Subsection of Document
  • Create an average of multiple excel chart without the data source
  • Drag and drop unicode TText in DelphiXe4
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • Google App Engine Datastore: Dealing with eventual consistency
  • ssh remote server login script
  • Why my AngularJS async test in Jasmine 1.3.x is not working?
  • Grails - How to implement a foreign key relationship not using an id column?
  • Capture SIGFPE from SIMD instruction
  • How to call different template for different category archive page in woocommerce
  • How to use FirstOrDefault inside Include
  • WPF custom control and direct content support
  • convert json to excel in java