Skip to content

Instantly share code, notes, and snippets.

@tw-Frey
Created July 11, 2022 14:43
Show Gist options
  • Select an option

  • Save tw-Frey/3ba65b03a9f033161c146fe4dfe8278f to your computer and use it in GitHub Desktop.

Select an option

Save tw-Frey/3ba65b03a9f033161c146fe4dfe8278f to your computer and use it in GitHub Desktop.
git cherry-pick 保留 origin commit date

git cherry-pick 保留 origin commit date

@setlocal
@if not [%1]==[] (
	(git show -s --format=%%ci %1 & echo.)>cherry.log & (set /p GIT_COMMITTER_DATE=)<cherry.log
	git cherry-pick %1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment