I have started collaborating with a few friends on a project & they use the heroku git repository.
I cloned the repository a few days ago and they have since mad
If you want to keep your working changes while performing a rebase, you can use --autostash
. From the documentation:
Before starting rebase, stash local modifications away (see git-stash[1]) if needed, and apply the stash when done.
For example:
git pull --rebase --autostash
Pulling with rebase is a good practice in general.
However you cannot do that if your index is not clean, i.e. you have made changes that have not been committed.
You can do this to work around, assuming you want to keep your changes:
git stash
git stash apply stash@{0}
or the simpler git stash pop
If you want to automatically stash your changes and unstash them for every rebase, you can do this:
git config --global rebase.autoStash true