Skip to content

Instantly share code, notes, and snippets.

View retanoj's full-sized avatar

retanoj retanoj

  • Beijing
  • 17:03 (UTC +08:00)
View GitHub Profile
@retanoj
retanoj / git-fetch-commit.sh
Last active June 26, 2025 02:39
Git拉取指定commit
// git 拉取指定commit
// git 版本 2.27
> git init
> git remote add origin {git_address}
> git -c protocol.version=2 fetch --depth=1 origin {commit_id}
> git reset --hard FETCH_HEAD
<build>
<sourceDirectory>${project.basedir}/src/main/lombok/</sourceDirectory>
<plugins>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.20.0</version>
<executions>
<execution>
<id>delombok</id>