I'm working with one other programmer using Github on an IntelliJ IDEA project. I'm not very experienced with Git and he's not very experienced with programming so we need a simple solution.
This question is not about myself updating the index--it's about whether my partner needs to do something, and if he doesn't will he commit changed .idea files?
I accidentally didn't include the .idea
directory in .gitignore
when first creating the repository. I've added it now and committed the new .gitignore
, and I know that I need to do something else--use git update-index --skip-worktree
to stop tracking those files (see .gitignore doesn't stop changes being tracked in files). My question is whether my partner will have to do something similar. I'm sure he will get the new .gitignore
when he pulls this commit, but will he also have to run git update-index --skip-worktree
?