git --single-branch --branch=${BRANCHNAME} --depth 1 ssh://git@${DOMAIN}/${DIR}/${REPO}.git clone
git branch --merged | grep -v "\*\|default"|xargs -n 1 git branch -d
git checkout -b ${BRANCH} ${SHA OF REVISION TO RESSURRECT}
find . \
-path '**.git' -prune \
-or -path '**/node_modules' -prune \
-or -name '*jar' -prune \
-or -name '*png' -prune \
-or -name '*class' -prune \
-or -name '*gif' -prune \
-or -name '*jpg' -prune \
-or -name '*war' -prune \
-or -name '*' \
-print0 |xargs -0 dos2unix
git add --renormalize .
git commit -m "line breaks"
git push
git clone --filter=blob:limit=20m --progress --branch ${BRANCH} -v "https://${DOMAIN}/${DIR}/${REPO}.git"
- https://blog.chapagain.com.np/git-fix-differences-created-by-line-endings-in-files/
- https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows
- https://stackoverflow.com/questions/29435156/what-will-text-auto-eol-lf-in-gitattributes-do
- https://stackoverflow.com/questions/1304626/switch-branch-and-ignore-any-changes-without-committing
- https://stackoverflow.com/questions/25349227/why-git-says-both-modified-when-outputting-git-status-after-conflict