Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

All common Git related problem & it’s the solution

25 sec read

How do I configure git to ignore some files locally?

This is kind of common problem we face, like Can I ignore files locally not on git repository

First Method :

git update-index --assume-unchanged[<file>...]

For Example, if your file path is app/etc/env.php
So then the command will be

git update-index --assume-unchanged app/etc/env.php

Second Method :

git update-index --skip-worktree [<file>...]

For Example, if your file path is app/etc/env.php
So then the command will be

git update-index --skip-worktree app/etc/env.php

Note : If you need to know differenct between them you can view this article , https://stackoverflow.com/questions/13630849/git-difference-between-assume-unchanged-and-skip-worktree/13631525

Update git branches in Server as new branch is Created on Git

git fetch
Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

Leave a Reply

Your email address will not be published. Required fields are marked *