* Changes not staged for commit with current master
@ 2017-08-07 7:59 martin rudalics
2017-08-07 9:26 ` Yuri Khan
0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2017-08-07 7:59 UTC (permalink / raw)
To: emacs-devel
git status for master currently tells me
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: src/bitmaps/README
deleted: src/bitmaps/cntrpmsk.xbm
deleted: src/bitmaps/cntrptr.xbm
deleted: src/bitmaps/crosswv.xbm
deleted: src/bitmaps/dimple1.xbm
deleted: src/bitmaps/dimple3.xbm
deleted: src/bitmaps/gray.xbm
deleted: src/bitmaps/gray1.xbm
deleted: src/bitmaps/gray3.xbm
deleted: src/bitmaps/leftpmsk.xbm
deleted: src/bitmaps/leftptr.xbm
deleted: src/bitmaps/rtpmsk.xbm
deleted: src/bitmaps/rtptr.xbm
deleted: src/bitmaps/stipple.xbm
What am I supposed to do with them?
TIA, martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changes not staged for commit with current master
2017-08-07 7:59 Changes not staged for commit with current master martin rudalics
@ 2017-08-07 9:26 ` Yuri Khan
2017-08-07 10:39 ` martin rudalics
0 siblings, 1 reply; 3+ messages in thread
From: Yuri Khan @ 2017-08-07 9:26 UTC (permalink / raw)
To: martin rudalics; +Cc: emacs-devel
On Mon, Aug 7, 2017 at 2:59 PM, martin rudalics <rudalics@gmx.at> wrote:
> git status for master currently tells me
>
> Changes not staged for commit:
> (use "git add/rm <file>..." to update what will be committed)
> (use "git checkout -- <file>..." to discard changes in working directory)
>
> deleted: src/bitmaps/README
[…]
> deleted: src/bitmaps/stipple.xbm
Git is saying that your working tree is missing several files that are
present in the repository revision.
> What am I supposed to do with them?
Depends on what you want to achieve.
If you want to author a commit that deletes these files:
…/emacs$ git rm src/bitmaps/README […] src/bitmaps/stipple.xbm
…/emacs$ git commit -m […commit message…]
Alternatively, if you deleted them accidentally (or they got deleted
and you do not know why), you can restore them this way:
…/emacs$ git checkout -- src/bitmaps/README […] src/bitmaps/stipple.xbm
Or, if you do not have any work in progress, you can reset your
working copy to the state of the current revision:
…/emacs$ git reset --hard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changes not staged for commit with current master
2017-08-07 9:26 ` Yuri Khan
@ 2017-08-07 10:39 ` martin rudalics
0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2017-08-07 10:39 UTC (permalink / raw)
To: Yuri Khan; +Cc: emacs-devel
> Alternatively, if you deleted them accidentally (or they got deleted
> and you do not know why), you can restore them this way:
I must have deleted this directory when I cleaned up those .deps files
recently. Messing with git-ignored files can be hazardous.
> Or, if you do not have any work in progress, you can reset your
> working copy to the state of the current revision:
>
> …/emacs$ git reset --hard
That's what I've done now.
Thank you very much for the prompt help, martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-07 10:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 7:59 Changes not staged for commit with current master martin rudalics
2017-08-07 9:26 ` Yuri Khan
2017-08-07 10:39 ` martin rudalics
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.