(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
##关键名词 | |
* 工作区(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 增加文件到暂存区 |