Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»GIT»How to ignore git file permission changes

    How to ignore git file permission changes

    RahulBy RahulNovember 20, 20191 Min ReadUpdated:July 5, 2021

    Git also tracks the permissions (chmod) of the files. If you have changed the file permissions, git will show you as modified files. Mostly the Linux users face this issue while securing their application by changing file permissions. You can configure your git to ignore file permissions changes using the following command.

    git config core.fileMode false
    

    The above command will set this for the current project. To make this changes global, run the following command:

    git config --global core.fileMode false
    

    You can enable the same anytime using the same command with the option “true” instead of false.

    chmod git
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install PHP 7.4, 7.3 & 7.2 on CentOS 8
    Next Article How To Install LAMP (Apache, MySQL, PHP) on Debian 10

    Related Posts

    How To Add a Git Remote Repository

    3 Mins Read

    How to Git Reset to Head

    Updated:November 3, 20213 Mins Read

    How to Delete a File on Git

    3 Mins Read

    How to Git Stash Changes

    Updated:October 29, 20213 Mins Read

    How to delete Git tags

    Updated:October 25, 20211 Min Read

    How to Create Git tags

    Updated:October 25, 20212 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install Sublime Text 4 on Ubuntu 22.04
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.