I'm quite new to git and have following problem:
I've worked on a some large code file in my private branch and refactored it so most of it was moved to few other code files. Now I'm trying to merge back to master via "git merge --squash --no-commit mybranch" but then I'm trying to commit it gives me an error:
error: 'foo' has changes staged in the index (use --cached to keep the file, or -f to force removal)
And the status of foo is "modified" and "renamed to bar" while bar is new file which is used from foo. How do I tell git this isn't rename and commit?