Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix CONFLICT on pop #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Try to fix CONFLICT on pop #111

wants to merge 2 commits into from

Conversation

ecarreras
Copy link
Member

@ecarreras ecarreras commented Nov 5, 2021

  • After doing git stash pop check if there are any unmerged file.
  • If there is an error reset the stash pop and keep the stash

We can undo the stash pop (keeping the stash) doing git reset --merge https://stackoverflow.com/questions/8515729/aborting-a-stash-pop-in-git

@guilleJB
Copy link
Member

guilleJB commented Nov 9, 2021

Could generate a git diff file before to stash dirty code and delete it when all runs well?

@ecarreras
Copy link
Member Author

Could generate a git diff file before to stash dirty code and delete it when all runs well?

Why? the stash doesn't get deleted if we do a git reset --merge

@guilleJB
Copy link
Member

guilleJB commented Nov 9, 2021

Why? the stash doesn't get deleted if we do a git reset --merge

Sorry, I'm read git merge --reset not git reset --merge

@ecarreras ecarreras added the minor Minor auto version V_.X._ label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement minor Minor auto version V_.X._
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants