Category Archives: Uncategorized

[转] 胡适在北京大学毕业典礼上的讲话(1932年6月27日)

【导读】1932年,时任北大文学院院长的胡适,在6月27日毕业典礼上有一段讲话,初载于1932年7月3日《独立评论》,流传至今。胡适谈到的许多问题至今仍然存在:“即便为了吃饭,学问决不会辜负人的。吃饭而不求学问,三年五年之后,你们都要被后进少年淘汰掉的。”

How to clone all remote branches with Git

Question: I have a master and a development branch, both pushed to remote git repository. How to clone all remote branches with Git

Answer:

clone the remote git repository: git clone git://example.edu/project_name

list all hiden local branches: git branch -a

$ git branch -a  
* master  
  remotes/origin/HEAD -> origin/master  
  remotes/origin/master  
  remotes/origin/another-branch

create a local tracking branch: git checkout -b another-branch remotes/origin/another-branch

list local branches: git branch, and you will see the local branches

read more