Skip to main content
added 3 characters in body
Source Link
kyb
  • 8.4k
  • 10
  • 68
  • 126

Simple solution: do not change commit message, but create file.

git filter-branch -f -d `mktemp -d` \ --tree-filter ' find . -type f -not -path ./\*/.git\* | while read file; do > "$file"; done echo "$GIT_COMMIT" >.GIT_COMMIT ' \ -- metainfo/$BRANCH 

Simple solution: do not change commit message, but create file.

git filter-branch -f -d `mktemp -d` \ --tree-filter ' find . -type f -not -path ./.git\* | while read file; do > "$file"; done echo "$GIT_COMMIT" >.GIT_COMMIT ' \ -- metainfo/$BRANCH 

Simple solution: do not change commit message, but create file.

git filter-branch -f -d `mktemp -d` \ --tree-filter ' find . -type f -not -path ./\*/.git\* | while read file; do > "$file"; done echo "$GIT_COMMIT" >.GIT_COMMIT ' \ -- metainfo/$BRANCH 
Source Link
kyb
  • 8.4k
  • 10
  • 68
  • 126

Simple solution: do not change commit message, but create file.

git filter-branch -f -d `mktemp -d` \ --tree-filter ' find . -type f -not -path ./.git\* | while read file; do > "$file"; done echo "$GIT_COMMIT" >.GIT_COMMIT ' \ -- metainfo/$BRANCH