Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

nbstripout and git pull fails #147

Open
KrisThielemans opened this issue Nov 1, 2019 · 1 comment
Open

nbstripout and git pull fails #147

KrisThielemans opened this issue Nov 1, 2019 · 1 comment

Comments

@KrisThielemans
Copy link
Member

See kynan/nbstripout#108

I vaguely remember a conversation with @casperdcl about this, but cannot find it back. I think I came to the conclusion that nbstripout doesn't use the correct filter settings, but I cannot remember, and definitely never tried anything.

It seems that the only fool-proof way is to do git reset --hard before the pull. Not ideal...

@casperdcl
Copy link
Member

For very complicated cases I often tend to

nbstripout --uninstall
git stash
git pull
git stash pop
<fix conflicts>
nbstripout --install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants