我有一个问题,当笔记本电脑的输出很长,并保存到笔记本电脑,任何时候我想再次打开这个特定的笔记本电脑浏览器崩溃,无法正确显示.
要修复此问题,我必须使用文本编辑器打开它,并删除该单元格中的所有输出,从而导致问题.
我想知道是否有办法清理笔记本电脑的所有输出,这样可以再次打开它而没有问题.我想删除所有输出,因为删除一个特定的输出似乎更麻烦.
我需要将git repo克隆到现有目录中($HOME
用于管理dotfiles).我正在做一个裸克隆并重新配置它,因为我需要克隆到现有的不干净的工作目录中.它工作,但我发现git status
尝试在首次使用时运行过滤器.为什么会这样做,我该如何预防呢?
试试这个:
# create a test repo
mkdir test && cd test
git init
echo hello > hello.txt
git add .
git commit -m 1
echo 'hello.txt filter=foo diff=bar' > .gitattributes
git add .
git commit -m 2
# clone it bare and configure it
mkdir ../test2 && cd ../test2
git clone --bare ../test .git
git config core.bare false
git config core.logallrefupdates true
git reset
git checkout .
git config …
Run Code Online (Sandbox Code Playgroud) 我想通过删除存储库历史记录中每个 Jupyter 笔记本的所有输出来缩小 git 存储库。这可能吗?