How do I keep up to date with the changes on this repository? #37
Replies: 4 comments 10 replies
-
Another option to stay up to date would be to have this repo managed by the Moonraker update manager. It could then be updated from the web interface, just like Klipper and Moonraker itself. To do that, you can add the following to the
The only caveat is that it expects no local changes to the repository; otherwise it refuses to update. Assuming the only changes made are to the |
Beta Was this translation helpful? Give feedback.
-
Could someone explane a noob like me how to update my pi 3 with the new git? Thank you |
Beta Was this translation helpful? Give feedback.
-
Just something very minor. "Hot to Update" should be "How to Update" |
Beta Was this translation helpful? Give feedback.
-
Hey this may be a stupid question but it seems to me there are two different portions to klipper. The firmware flashed onto the printer and then the controller part of klipper whether it be a Pi or btpad 7 or whatever. Should I also be updating firmware along with the controller portion of Klipper? You are also right about the memory thing(in your instructions) here I cannot exactly remember what changes I have made to printer.cfg and I am quite sure I have :- ( I will have to parse the file by looking sadly. |
Beta Was this translation helpful? Give feedback.
-
** Flashing the firmware is not required for any method
Should You Update?
I treat this config like software, and like any piece of modern software, it will require periodic updates to fix issues, add features, improve functionality, etc. So, if you want to have the latest and greatest, I recommend you periodically pull the changes from this repo.
What Changes Should You Be Concerned With
The only changes you need to be concerned with relate to the
.cfg
and.conf
files; all changes to.md
files (these are markdown files, the text that you see when you visit this repo) can be ignored.Git Users
If you do a
git diff origin/master --name-only
and it shows you that a.cfg
file has changed, you might want to pull in those changes.Non-Git Users
Unfortunately, there's no simple way for you to ascertain whether there have been changes. I simply recommend that you update your config via the instructions below from time to time.
How to Update
There are three methods to accomplish this:
git
.git
.The
git
method.git
.📝 In this example, I'm using the
master
branch which applies to SV06 users only. Be sure to use the appropriate branch for your printer.📝 The assumption is that you didn't change branches after the initial setup, so you are in
master
, and there are many untracked changes.ssh
into your Klipper host.cd ~/printer_data/config
git checkout -b my-settings
git add .
git commit -m "Saving my settings."
git checkout master
git pull
git checkout my-settings
git merge master --no-ff --no-commit
master
using your favourite code editor. You can also do this from the command line viagit commit --interactive
, however, only advancedgit
users should attempt this, though it is easy enough.git commit -m "Update with upstream."
You should push your branch to your own fork of this repo.
For any future updates, you can run through the same process again, however, you cannot re-create the
my-settings
branch as you did instep 3
, because it already exists. Simply omit the-b
flag instep 3
next time you update.The mostly acceptable method.
This method has shortcomings, because it relies on the user's memory, and requires more manual edits. Perfectly functional method, however.
~/printer_data/config
.#*# <---------------------- SAVE_CONFIG ---------------------->
onward and paste into newprinter.cfg
, inclusive.position_max
), or other such changes.The start-from-scratch method.
~/printer_data/config
.~/printer_data/config
viamkdir ~/printer_data/config
.Download OSS Klipper Configuration
in the appropriate branch.Linux Tips
rm fileName
and directories viarmdir directoryName
.ls -lah
.You are now up-to-date with this repo, and have added your personal settings on top.
Beta Was this translation helpful? Give feedback.
All reactions