I deleted a swap file and called git stash
before making a pull request. When i tried git stash pop
, i got following error
Cannot apply to a dirty working tree, please stage your changes
I followed this wiki and tried to apply via patching the changes. But it is not working.
I guess this message will give some hint
diff --git a/db/.schema.rb.swp b/db/.schema.rb.swp
deleted file mode 100644
index 6570b8e..0000000
Binary files a/db/.schema.rb.swp and /dev/null differ
How to resolve this?