4期
2012年1月16日
git-init
git的基本配置和使用,帮助初学者快速上手。涉及`git diff`, `git config`和tig等。让我们不用读文档,而是在实际操作中窥豹于一管。
本期要点
terminal
sudo apt-get install git
terminal
git init
ls -a
git status
terminal
git add README
git commit -m "1st"
terminal
git config --global user.name "Peter Wang"
git config --global user.email "happypeter1983@gmail.com"
git log
git log -p
terminal
sudo apt-get install tig
terminal
git commit -a
git diff
terminal
git config --global core.editor vim
git commit -a -v
git config --global alias.ci "commit -a -v"
~/.gitconfig
[user]
name = Peter Wang
email = happypeter1983@gmail.com
[core]
editor = vim
[alias]
ci = commit -a -v
2评论
Markdown Cheat Sheet
| You write: | You get: |
|---|---|
[Link](http://example.com/) |
Link |
*Italic* |
Italic |
**Bold** |
Bold |
* Listed * Items |
|
``` puts "hello" ``` |
puts "hello"
|
老师,应该讲一下tig的用法啊
@wuweidong
好啊,回头出一期。