Comments (8)
I just bumped into that problem and will look into your proposed solution.
from magit.
@dudebout does this issue still exist?
from magit.
You can stage them (without actually resolving the merge conflicts) and once staged delete them.
Downgrading to feature-request
for doing it in one step.
from magit.
Staging & then discarding is certainly possible, but having gone through a lot of such situations recently I can safely say that it is annoying and error-prone. If your merge (or re-base or whatever) involves a lot of files then having to add an unstaged part first means that I also have to search for where the newly added file to be discarded shows up in the list of staged changes. Highly annoying, and like I said, a potential source for quick mistakes (ooops, I've moved one line down too much and discarded the wrong item).
Consider this a +1 to this feature request. I'd even consider this a bug as magit is doing stuff that git fails with 100% of the time.
from magit.
As noted in #552 we also have to take care of the deleted by us/them
states. I consider this a special case of the above (well I hope :-)
from magit.
Unfortunately it is impossible to stage a 'deleted by us' file because stage uses '-u' option for git add. This makes 'two step' process of removing unstaged file described above impossible for such files.
from magit.
I have implemented this on the next
branch.
k
on an unmerged file now offers to pick either side. The command magit-checkout-stage
can also be used directly, e.g. to restore the conflict.
from magit.
you can reset the file and later on can checkout from the file you want.
git reset builtin/fetch.c
git checkout builtin/fetch.c
I hope these will solve the problem.
from magit.
Related Issues (20)
- Magit displays warning about transient version, even though I'm using the latest. HOT 5
- magit-log-mode-hook Does Not Work
- Magit commit fails with `safe.barerepository=explicit`. HOT 13
- Hunk refinement does not work for unmerged files HOT 1
- magit-blame shows CommitDate instead of AuthorDate
- Stage hunk in tramp session result in infinity loop HOT 2
- When doing worktree diff with a commit, apply/reverse doesn't work in the diff buffer HOT 3
- Setting `safe.bareRepository=explicit` breaks magit commit HOT 1
- magit-diff-paths output is not washed HOT 1
- Error in `magit-repolist-column-version` function: (wrong-type-argument integer-or-marker-p nil) HOT 1
- `magit-log` with `--author=` argument hangs with `vertico-mode` when `transient-default-level` is 7 HOT 2
- Magit should always specify --git-dir or GIT_DIR when cd-ing to a gitdir to run some Git subcommand. HOT 19
- Binding C-<tab> conflicts with Emacs' tab-bar-mode HOT 1
- Non-existing tramp function advised in magit-process.el HOT 1
- Confirm commit message when running emacs as client HOT 5
- Trying to visit files in `magit-diff-paths` output leads to wrong path
- large git merges make magit-process buffer grow quickly
- `Filter! diff.ignoreSubmodules=untracked` on top of magit buffer is confusing
- Unable to recursively init submodules HOT 1
- submodule update with universal argument still prompts for submodule selection when there is only one submodule HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magit.