Skip to contentSkip to conversation

Can not save changes into stash

DISCUSSION KES 2 participants 3 messages May 9, 2018

lore
Share & tools
lore

KES

author
#0 lore raw

How to reproduce:

$ git update-index --skip-worktree conf/local.conf
$ git pull
Updating 0cd50c7..bde58f8
error: Your local changes to the following files would be overwritten by merge:
	conf/local.conf
Please commit your changes or stash them before you merge.
Aborting
$ git stash save
No local changes to save
author
#1 lore raw

I even can not drop local changes:

$ git checkout local.conf 
error: pathspec 'local.conf' did not match any file(s) known to git.
$ git log local.conf
commit 6df8bab88fd703c6859954adc51b2abaad8f59ec
Author: Eugen Konkov <[email protected]>
Date:   Wed May 9 15:31:02 2018 +0300

Implement module which allow override target option

Most usefull to configure application on developer host

09.05.2018, 16:25, "KES" <[email protected]>:

Quoted 11 lines

How to reproduce:

$ git update-index --skip-worktree conf/local.conf
$ git pull
Updating 0cd50c7..bde58f8
error: Your local changes to the following files would be overwritten by merge:
        conf/local.conf
Please commit your changes or stash them before you merge.
Aborting
$ git stash save
No local changes to save
#2 lore raw

[Please no top posting here]

Quoted 5 lines · KES

I even can not drop local changes:

$ git checkout local.conf 
error: pathspec 'local.conf' did not match any file(s) known to git.
Quoted 10 lines
$ git log local.conf
commit 6df8bab88fd703c6859954adc51b2abaad8f59ec
Author: Eugen Konkov <[email protected]>
Date:   Wed May 9 15:31:02 2018 +0300

Implement module which allow override target option

Most usefull to configure application on developer host

It may be help, if we have some more information, either to re-produce your issue or to help with debugging.

Is this a public repo ?
Which Git version do you use ?
Which OS (Linux, Mac OS, Windows anything else ?)
What does "git status" say ?
What does "git diff" say ?

Quoted 13 lines

09.05.2018, 16:25, "KES" <[email protected]>:

Quoted 11 lines

How to reproduce:

$ git update-index --skip-worktree conf/local.conf
$ git pull
Updating 0cd50c7..bde58f8
error: Your local changes to the following files would be overwritten by merge:
        conf/local.conf
Please commit your changes or stash them before you merge.
Aborting
$ git stash save
No local changes to save