git笔记git自动填入账号密码打开终端,输入git config --global credential.helper store 此时,我们就已经开启了git账号密码的本地储存,在下一次push时只要输入账号密码就可以一劳永逸了。git设置默认的commit编辑器git config --global core.editor $editor_name Ps: $editor_name指的是你选用的编辑器,一般为nano、vim等pick一个仓库中连续的几个commitgit cherry-pick <commit1_id>..^<cimmitn_id> Ps: <commit1_id>和<commitn_id>分别指第一个你想要pick的commit_id和最后一个你想要pick的commit_idpick失败时如何撤销此次pickgit cherry-pick --abort 踩坑记录发生背景...
repo笔记清除同步过程中产生的不完整碎片文件在源码路径/.repo下搜索tmp_pack 将搜索结果中出现的所有文件全部删除以下命令仅供参考rm -rf */*/*/*/objects/pack/tmp_pack_* repo自动同步下载脚本echo #!/bin/bash echo "======start repo sync======" repo sync --force-sync --current-branch --no-tags --no-clone-bundle --optimized-fetch --prune -j$(nproc --all) while [ $? == 1 ]; do echo "======sync failed, re-sync again======" sleep 3 repo sync --force-sync --current-branch --no-...
在Windows下给cmd设置代理cmd打开方法按住win+R键,调出一个运行框,接着输入cmd并回车即可设置cmd代理一般性使用的如果是ShadowsockR的话,代理端口都是1080,v2ray的话则是10808ShadowsocksRset http_proxy=http://127.0.0.1:1080 set https_proxy=http://127.0.0.1:1080 v2rayset http_proxy=http://127.0.0.1:10808 set https_proxy=http://127.0.0.1:10808 为git设置代理ShadowsocksRgit config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy http://127.0.0.1:1080 v2raygit conf...
1…1011121314