Git Ignore File Permission

When you clone a git project on Ubuntu, you need to change its permissions to make it editable. The problem with doing this is by default git tracks file permission changes and consider it as modification in file. However, there is simple trick which you can use to stop git to ignore changes in file permission.

We can force git to ignore file permissions by running this command inside your terminal.

git config core.fileMode false

You can also set it as global cofiguration by using following command.

git config --global core.filemode false

See Also: Remove Author From WordPress Recent Comments Widget

Installing Git on Ubuntu

In this tutorial, we are going to install Git version control system on Ubuntu. To install Git on Ubuntu follow the steps given below.

Step 01.

In the first step, you need to add PPA to your Source list.

add-apt-repository ppa:git-core/ppa

Step 02. 

Now run the following command to update your soruce list

apt-get update

Step 03.

Now, run the following command to start the installation process

apt-get install git

Read More: How to Remove a Package From Laravel Using Composer