git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git revert with partial commit.

From
HZHongyi Zhao <hongyi.zhao@gmail.com>
Date
Apr 2, 2023, 09:17 UTC
Message-ID
<CAGP6POLrtA_9kjCwUbVB8-F+dgQbhz==oy5SsXULfspNj_Umuw@mail.gmail.com>
Hi here,
I want to revert a previous commit partially, as follows:
werner@X10DAi:~$ git log |grep -A3 -B5 -m1 texstudio
commit f18fbd1e16a1ca4215621768d17858c036086608
Author: Hongyi Zhao <hongyi.zhao@gmail.com>
Date:   Sun Aug 1 20:01:02 2021 +0800
    deleted:    Public/CTAN/IDE/phonon/compile-install-phonon
    deleted:    Public/CTAN/IDE/texstudio-org/texstudio.git.sh
    modified:   Public/repo/github.com/Dushistov/sdcv.git.sh
    deleted:    Public/repo/github.com/goldendict/stardict-relative/bigdict
More specifically, I just want to revert the following ones:
    deleted:    Public/CTAN/IDE/phonon/compile-install-phonon
    deleted:    Public/CTAN/IDE/texstudio-org/texstudio.git.sh
Is this possible?

Regards, Zhao

-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
Next: Torsten Bögershausen
Message 1 of 18 in “git revert with partial commit.”
  1. Hongyi ZhaoApr 2, 2023
  2. Torsten BögershausenApr 2, 2023
  3. Junio C HamanoApr 3, 2023
  4. Hongyi ZhaoApr 4, 2023
  5. Phillip SusiApr 3, 2023
  6. Hongyi ZhaoApr 4, 2023
  7. Hongyi ZhaoApr 4, 2023
  8. Hongyi ZhaoApr 4, 2023
  9. Chris TorekApr 4, 2023
  10. Sergey OrganovApr 4, 2023
  11. Junio C HamanoApr 4, 2023
  12. Sergey OrganovApr 4, 2023
  13. Junio C HamanoApr 4, 2023
  14. Felipe ContrerasApr 4, 2023
  15. Sergey OrganovApr 5, 2023
  16. Felipe ContrerasApr 7, 2023
  17. Sergey OrganovApr 7, 2023
  18. Phillip SusiApr 6, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.