我最近开始在工作流程中添加git别名,但还没有弄清楚如何处理以下情况。
每天多次使用
git pull git@github.com:Matt-Dionis/angular2-tour-of-heroes.git
将最新的远程分支合并到本地的master
。
我想做的是指定一个别名,例如git pull latest-tour
,其中latest-tour
指的是那个ssh地址。是否有办法实现这个目标呢?
git remote add latest-tour git@github.com:Matt-Dionis/angular2-tour-of-heroes.git
- Jeff Puckettgit fetch
,使用git log latest-tour/master
查看提交,合并和/或变基等。 - torek