Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zmonoid's full-sized avatar
🎯
Focusing

zmonoid

🎯
Focusing
View GitHub Profile
##关键名词
* 工作区(Working area):就是咱们刚才创建的mygit文件夹。
* 暂存区(Staging area):对文件操作(也就是需要提交的文件修改)的地方就叫暂存区。--注意:这里的修改包括对文件的增删改。
* 版本库(Repository):就是你所看到的的那个隐藏的“.git”目录,它就是咱们的版本(仓)库。
##常用命令
1. git config --global user.name "your name" 配置用户名
2. git config --global user.email "email@example.com" 配置用户邮箱
3. mkdir mygit && cd mygit && git init 初始化空的git仓库
4. git status && git add && git commit 增加文件到暂存区
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a