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 | |
| set -eux | |
| # Use this script to prune away everything but `foo/bar/somedir`, resulting with only `somedir` | |
| # in the root. Using `--subdirectory-filter` is undesireable because it hoists all the contents | |
| # of `somedir` into the root. | |
| mkdir -p __github-migrate__ | |
| mvplz="if [ -d $1 ]; then mv $1 __github-migrate__/; fi;" | |
| git filter-branch -f --tree-filter "$mvplz" HEAD |
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
| export const msg = "hello"; |
OlderNewer