Recently I have started working with git version control system and I’m loving it, especially the Git bash. Usually in each and every project there are some files which we don’t want to commit and push on live again and again. For example configuration files and db files once committed don’t need to be modify again for live site. In such cases to stop manual intervention git provide us the facility to ignore files. Let’s discuss: We can ignore files in two ways. 1) Using .gitignore file : If you don’t want some files to be added and want to ignore them while uploading on server, then you can use .gitignore file. For example you have a file named bkp_config.php and while pushing you code live you don’t want to push that file. In such cases you can use .gitignore file. There are again two scenarios. a) Files have already been tracked. Means first you have added the files, committed them and then pushed them on master repository.