question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Override local changes with west update

See original GitHub issue

Hi, is it possible to override local changes when running west update?

For instance these when running west update;

=== updating trusted-firmware-m (modules/tee/tfm):
HEAD is now at c74be389 trusted-firmware-m: platform: lpcxpresso55s69: Update SDK
M       trusted-firmware-m/bl2/ext/mcuboot/CMakeLists.txt
M       trusted-firmware-m/bl2/ext/mcuboot/bl2_main.c
M       trusted-firmware-m/bl2/ext/mcuboot/keys.c
M       trusted-firmware-m/bl2/ext/mcuboot/scripts/assemble.py
M       trusted-firmware-m/bl2/ext/mcuboot/scripts/wrapper/wrapper.py
M       trusted-firmware-m/platform/ext/target/nordic_nrf/nrf5340dk_nrf5340_cpuapp/RTE_Device.h
=== updating mbedtls (modules/crypto/mbedtls):

Best Regards, Nano

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mbolivar-nordiccommented, Jun 7, 2022

Hi, no, west update has no features for throwing away local changes. You can run git reset --hard HEAD in modules/tee/tfm instead.

0reactions
mbolivar-nordiccommented, Jun 24, 2022

I have no plans to add those types of features myself, as I tend to work on west when I have a mandate to add a feature that’s blocking me in some way. But the project is open to contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I force "git pull" to overwrite local files?
Any uncommitted local changes to tracked files will be lost. Any local files that are ... First, update all origin/<branch> refs to latest:...
Read more >
Git Pull Force – How to Overwrite Local Changes With Git
When your uncommitted changes are significant to you, there are two options. You can commit them and then perform git pull , or...
Read more >
How do I force git pull to overwrite local files?
The reason for error messages like these is rather simple: you have local changes that would be overwritten by the incoming new changes...
Read more >
How to force overwrite local changes with 'git pull'
first sync up and fetch all remote repository changes. · backup your current branch - since when we force the pull, all changes...
Read more >
Undo possibilities in Git - GitLab Docs
Choose an option and undo your changes: To overwrite local changes: git checkout -- <file>. To save local changes so you can re-use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found