7

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?

Demetris
  • 223
  • 1
  • 6
Luke
  • 173
  • 2

1 Answers1

5

Based on this answer, you need the following procedure:

  1. Stash your local changes using git stash
  2. Pull from remote repository using git pull
  3. 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.

Demetris
  • 223
  • 1
  • 6
  • Thank you! I always wondered when to use stash - it seems like this would be an appropriate scenario. – Luke Aug 01 '16 at 13:51