Git Mailing List Archive mirror
 help / color / mirror / Atom feed
* Can not `git stash push -- .`
@ 2023-08-29 19:11 Eugen Konkov
  0 siblings, 0 replies; only message in thread
From: Eugen Konkov @ 2023-08-29 19:11 UTC (permalink / raw
  To: git

I tried to stash staged files with the command above, but got an
error. I even change directory to the top level (where .git is
located) and try to provide pathspec. Same result :(
```
$ git stash push -S -m "core -> ubuntu Migration" -- tools/ec2.tf
tools/init.conf
Saved working directory and index state On branch/xxx: core -> ubuntu Migration
error: patch failed: state.d/terraform.tfstate.backup:2
error: state.d/terraform.tfstate.backup: patch does not apply
Cannot remove worktree changes
```

Is there a way to stash only selected staged files from current
subdirectory, eg. `git diff --staged .`

Thank you.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-29 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 19:11 Can not `git stash push -- .` Eugen Konkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).