快捷键 | 功能 |
---|---|
cmd + shift + p | 打开命令菜单 |
cmd + t | 模糊搜索工作目录下的文件 |
cmt + b | 搜索已经打开的文件 |
ctrl + 0 | 焦点移动到文件目录 |
cmd + \ | 隐藏左侧目录树 |
ctrl + [ | 目录中展开结点 |
ctrl + ] | 目录中缩起结点 |
d / a / m | 对目录选中的结点进行 删除 / 添加 / 移动 |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
This file contains 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
import json | |
import datetime | |
'''Create an encoder subclassing JSON.encoder. | |
Make this encoder aware of our classes (e.g. datetime.datetime objects) | |
''' | |
class Encoder(json.JSONEncoder): | |
def default(self, obj): | |
if isinstance(obj, datetime): | |
return obj.isoformat() |