the information it shows is something like
your local files will be override.......
Is something wrong with the gitignore file?
What can I do to eliminate it absolutely? Thanks a lot!
the information it shows is something like
your local files will be override.......
Is something wrong with the gitignore file?
What can I do to eliminate it absolutely? Thanks a lot!
It has nothing to do with the .gitignore
it means that you have changes which are not committed while others have been modifying the same file in the remote repository.
Commit your changes and then perform the pull
# add your files to the staging area
git add . (or any other file that you need)
git commit
# now pull
git pull
Or if you dont wish to commit:
git stash
# now pull
git pull
I don't committed the files in the .idea dir because I want to push it to the remote branch and these files is forbidden to push to the remote branch.
If they are already commited remove them from the index
# remve the commited files
git rm --cached <file list>
Or if you wish to remove them completely from the history use
BFG - https://rtyley.github.io/bfg-repo-cleaner/
Use this ignore file from now on:
https://www.gitignore.io/api/intellij