Use git archive to export the last committed Git change file
Original link: https://blog.kelu.org/tech/2023/05/27/how-to-export-gits-changed-files.html git archive -o “$(basename “$(pwd)”).zip” HEAD $(git diff –name-only HEAD^ HEAD) The meaning is as follows: git archive : used to create a Git archive file. -o “$(basename “$(pwd)”).zip” : Specifies the name of the output file. Here, we use basename “$(pwd)” to get the directory name of the current directory. HEAD […]
Use git archive to export the last committed Git change file Read More »