How to git pull while ignoring the local changes?

Viewed 11438

As I am trying to pull some changes from origin/master, I am getting this error :

error: Your local changes to the following files would be overwritten by merge

because I made local changes. I don't want to commit these changes, so I suppose I should use git stash on my branch, then git pull origin master

My question is :

  1. Will the pull simply ignore the changes and merge correctly
  2. Can I still use my local changes after the pull + the ones merged without any additional step ?

Thank you !

PS : yes, I googled, I just want to make sure I understood correctly.

5 Answers
Related