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
| # All data coming across the intarwebs is encoded in a file encoding. | |
| # This could be ASCII, UTF-8, UTF-16, Shift-JIS, etc. To properly | |
| # handle data, you need to know the encoding. Thankfully on the web | |
| # the de facto standard seems to be moving towards UTF-8. | |
| # | |
| # In order to safely deal with data - you want to decode this encoded | |
| # data (referred to in Python world as a byte string) from its | |
| # encoding to the generic unicode data type - Python can | |
| # safely work with this in all situations. Let's pretend we | |
| # have some data foo we have just read in from the intarwebs |
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 clone [email protected]:bar.git | |
| cd bar | |
| git filter-branch --subdirectory-filter foo -- --all | |
| git branch -M master hold | |
| git checkout --orphan master | |
| git rm -rf * | |
| git commit --allow-empty -m "Initial root commit" | |
| git checkout -b dev | |
| git checkout hold | |
| git rebase --onto dev master |