zexixing / Notes

0 stars 0 forks source link

工具的使用/快捷操作/收集 #1

Open zexixing opened 5 years ago

zexixing commented 5 years ago

typora

zexixing commented 5 years ago

网页

快捷键

zexixing commented 5 years ago

iterm

快捷键

zexixing commented 5 years ago

VS code

快捷键

zexixing commented 5 years ago

nteract

快捷键

Jupiter lab

命令行

zexixing commented 5 years ago

latex

配置和快捷键

zexixing commented 5 years ago

Mac快捷操作

快捷键

zexixing commented 5 years ago

Github/Git

  1. 配置
    • git config --global --list
    • git config --global user.name "zexi"
    • git config --global user.email "zexixing0604@gmail.com"
  2. 新建
    • git init
    • git init (repo)
    • git clone (url) (rename)
    • touch
  3. 查看
    • git status
    • git log #查看版本记录
    • git log -p #查看版本记录的具体操作
    • git log --oneline
    • git log --oneline --all #显示所有记录
    • git log --oneline --all --graph #图示全部历史记录
    • git checkout (commit_id, tag_name) #穿越到指定的历史节点
    • git show (tag_name)
  4. 添加
    • git add . && git commit -m "描述"
    • git tag -a (tag_name) -m “备注”
    • git tag -a (tag_name) -m “备注” commit_id
  5. 分支
    • git branch (branch_name)
    • git checkout (branch_name)
    • git merge branch_name #合并branch_name到当前分支
  6. 远程
    • git remote add origin (url) #添加远程仓库
    • git remote #列出所有远程仓库
    • git remote -v #列出远程仓库详细信息
    • git push -u origin master # repo_name branch_name
    • git pull #获取远程更新 = git fetch && git merge