I have a lot of untracked files in my local git repo. Someone accidentially pushed a lot of those untracked files. Now, I want to merge origin/master and I receive:
error: The following untracked working tree files would be overwritten by checkout
I want that untracked files stay in my repo as untracked and I do not want to delete them. The files shouldn't be on origin/master. Is there any elegant way to solve the issue from my side?
.gitignore, then commit it and everyone will have it.