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
If we need pack all working files(maybe modifed), not the commited git files. | |
# ensure pwd is git root dir | |
git ls-files | tar -T - -cf - | lzip -9q > /tmp/master.tar.lz |
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
REPONAME="knew" | |
OLDFULLREPO="k8" | |
git init $REPONAME | |
cd $OLDFULLREPO | |
ls -1 > ../${REPONAME}/.git/info/sparse-checkout | |
GITURL="$(git remote show origin | awk '/Fetch URL/ {print $3}')" | |
cd ../$REPONAME | |
nano .git/info/sparse-checkout # remove unwanted dirs | |
git config --local core.sparsecheckout true | |
git remote add origin "$GITURL" |
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
# z's config for the zsh | |
# Install: curl -o $HOME/.zshrc -L https://tinyurl.com/nobk-zshrc | |
TERM=xterm-256color | |
# Load user rc script | |
[ -f "$HOME/.zsh_user.zsh" ] && source "$HOME/.zsh_user.zsh" | |
# History in cache directory: | |
HISTSIZE=10000 | |
SAVEHIST=10000 |