As a team we are working on same branch in GIT. Now I want to check in my changes. But before that I need to do a pull. Its giving me a warning to clear my local changes before doing pull. How can I do a pull while making sure to keep local changes.
Git's pull
operation is a high level operation that does two things:
fetch
es the commit history from the serverThese operations can also be done stand alone. This is the workflow I'd recommend:
git stash
but I find it is easy to forget about the contents of your stash during the conflict resolution step)git fetch
to check for any upstream changesgit log
git rebase