Skip to content

Instantly share code, notes, and snippets.

@brunolimame
Last active July 15, 2016 18:46
Show Gist options
  • Save brunolimame/53cb3c6c0b60fee9f39b6ff60966336e to your computer and use it in GitHub Desktop.
Save brunolimame/53cb3c6c0b60fee9f39b6ff60966336e to your computer and use it in GitHub Desktop.
Create update package between commits
Criar pacote de atualizações entre commits | Create update package between commits
-------------------------------------
Criar um arquivo apenas com a diferença entre os commits. | Create a file with only the difference between commits.
-------------------------------------
Comando para listar as tags e seus commits. | Command to list as tags and commits.
-------------------------------------
git log --no-walk --tags --pretty="%h %d %s" --decorate=short
tag_ver_1.9 = <start-commit>
tag_ver_2.0 = <end-commit>
git diff-tree -r --no-commit-id --name-only <start-commit> <end-commit>| xargs tar -rf patch.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment