Git: Fix warning: unable to access '/.config/git/ignore': Permission denied

Written by  Thursday, 12 April 2018 20:42

After I check the folder, I just know that the folder owned by “root” user.

ls -lah
sudo chown whoami .config

 

214 Read

Related items

  • How to Stop .DS_Store File Creation on Network Volumes in Mac OS X
    in Mac

    To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

    defaults write com.apple.desktopservices DSDontWriteNetworkStores true

    Reboot the Mac for changes to take full effect.

  • Customize OS X's Login Screen with Any Logo You Want
    in Mac

    The login screen on your Mac is perfectly functional as it is, but if you want to spice it up a little bit, blogger Jacob Salmela shows you how to customize the login screen with a logo of your choosing.

    If you don't want to install a whole program just for a simple tweak it's easy to do manually. All you need is a PNG that's 428 X 248. Then, you'll need to save it as four different files.

    Here's instructions:

    You need four copies of this file, and they need to be named:

    • apple.png
    • apple@2x.png
    • apple_s1.png
    • apple_s1@2x.png

    Once they are named correctly, just drag them into the following path:

    /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Resources/

    and then choose to replace all of them.

    That's it, log out, and you should see your new logo. Head over to Salmela's site for a few sample images and instructions for making your own.

  • How to Stop DS_Store File Creation on Network Volumes in Mac OS X
    in Mac

    To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  • [solved] How to removing the blurred login screen in Mac
    in Mac

    First - open Finder -> Go to folder -> /Library/Caches

    The second - find file com.apple.desktop.admin.png and replays it with your image ;) filename need be same = com.apple.desktop.admin.png. You also may rename jpg file to png without converting.

    1520267119870.jpeg 8d0e6

  • How to Lock the Mac Screen from Terminal in OS X
    in Mac

    Open Terminal and enter the following in a single line:

    /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend