This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/17901588/new-repo-with-copied-history-of-only-currently-tracked-files | |
git remote | while read -r line; do (git remote rm "$line"); done | |
git tag | xargs git tag -d | |
git branch | grep -v \* | xargs git branch -D | |
git stash clear | |
git config --local -l | grep submodule | sed -e 's/^\(submodule\.[^.]*\)\(.*\)/\1/g' | while read -r line; do (git config --local --remove-section "$line"); done | |
rm -rf .git/modules/ | |
git ls-files | sed -e 's/^/"/g' -e 's/$/"/g' > keep-these.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rebase "$(git merge-base HEAD master)" -x 'git commit --amend -C HEAD --date="$(date -R)" && sleep 1.05' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.../openshift/origin ∎ cat ~/.git_commit_template | |
#Bug ##### - Short summary of fix, symptom, or bug | |
#Card online_runtime_##### - Short summary of fix, symptom, or bug | |
#Card origin_runtime_##### - Short summary of fix, symptom, or bug | |
#WIP Cartridge - | |
#WIP Node Platform - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
oc cluster down | |
docker rm -f bindmountproxy |