0%

If you haven’t already run git rm --cached path_to_submodule (no trailing slash) as well as rm -rf path_to_submodule, do that!

Then:

  1. Delete the relevant lines from the .gitmodules file. e.g. delete these:
1
2
3
[submodule "path_to_submodule"]
path = path_to_submodule
url = https://github.com/path_to_submodule
  1. Delete the relevant section from .git/config. e.g. delete these:
1
2
[submodule "path_to_submodule"]
url = https://github.com/path_to_submodule
  1. rm -rf .git/modules/path_to_submodule

Then, you can finally:

1
git submodule add https://github.com/path_to_submodule

1
HOMEBREW_NO_AUTO_UPDATE=1 brew install proxychains-ng

  1. 不使用obj 和 objs

sudo vim /etc/ssh/sshd_config
去掉注释:

1
2
3
4
5
RSAAuthentication yes # 启用 RSA 认证

PubkeyAuthentication yes # 启用公钥私钥配对认证方式

AuthorizedKeysFile .ssh/authorized_keys # 公钥文件路径(和上面生成的文件同)

/bin/systemctl restart sshd.service

TypeError: ‘module’ object is not callable

1
2
tqdm.tqdm
from tqdm import tqdm

Pycharm 快捷键
⇧⌘F/⇧⌘R: 全局搜索/替换: 

⇧⌘A:执行一些action(git pull)

Shift-shift 文件名, 类名, 方法名

Alt+Enter: 自动import

Alt + Left|Right: 移动光标到上一次编辑或者返回移动之前的位置. 

Ctrl+x: 不用选择, 直接删除整行代码

Alt + 鼠标 or Shift + Crtl + Alt + 鼠标: 选择多处进行同时编辑,

Ctrl+Tab: 和chrome一样的切换标签

因为pycharm配置的需要,所以找出pyenv里python的地址

在pyenv 里面直接敲,没有发现python的地址

Read more »

1
2
3
4
5
6
git init
git add *
git commit -m "init"
git remote add origin https://github.com/User/Project.git
git pull origin master --allow-unrelated-histories
git push -u origin master