I cloned the Marlin repository and changed all my settings in configuration.h
to match my old settings. Now when the RC branch gets updated, is there a way to upstream pull the changes without losing my settings?
1 Answer
$\begingroup$
$\endgroup$
1
Based on this answer, you need the following procedure:
- Stash your local changes using
git stash
- Pull from remote repository using
git pull
- Merge your stashed configuration file using
git stash pop
Of course, if there are changes in the configuration.h
file on the remote repository and cause conflicts, you will need to resolve them, but it should be straight forward.
-
$\begingroup$ Thank you! I always wondered when to use stash - it seems like this would be an appropriate scenario. $\endgroup$– LukeCommented Aug 1, 2016 at 13:51