git-workflow
5期 2012年1月23日

git-workflow

看看git如何辅助正在单兵作战的你。就像Linus曾经说的,如果一个操作可以比以往快很多的实现,那人们就会用一种全新的方式来使用这个操作。这句话正适用于git出现之后的版本控制。
~/.gitconfig
[user]
    name = Peter Wang
    email = happypeter1983@gmail.com
[core]
    editor = vim
[alias]
    ci = commit -a -v
    throw = reset --hard HEAD
    throwh = reset --hard HEAD^
terminal
git add .
git ci
git diff
git throw
git throwh
terminal
git ci
git checkout hello.h
terminal
git stash
#work on sth else and commit it
git stash apply
terminsl
git checkout -b tmp
git checkout master
git branch -D tmp
git checkout fe544a -b tmp
happypeter 10 个月前

视频内容太多了,所以不可能讲清楚,所以这个视频的评价是:很失败!
作改进版的时候要把内容切成2或3个视频。

john 7 个月前

git checkout commit_id
学习了

讲的挺好,不过适合有一定基础的人

happypeter 7 个月前

@john,我还是主要往更清晰简明的方向努力,光实用还不行

numbbbbb 7 个月前

今天第一次知道这个网站,很喜欢。风格很简洁,内容很实用。而且“本期要点”这个栏目很好,刚才还想着要做下笔记,就发现作者直接给总结出来了。虽然现在视频不多,但是希望作者一直做下去。支持!!

happypeter 7 个月前

@numbbbbb thx!

Jacky 7 个月前

讲的太好了,学会了很多日常工作的git用法,多谢。

boostbob 6 个月前

git stash 不错,非常感谢!