如何使用git来检出指定版本的Webkit? [英] How to use git to checkout a specified version of Webkit?
问题描述
我需要更改哪个步骤以指定签出正确版本的Webkit for Chrome?
谢谢。
git clone git://git.webkit.org/WebKit.git WebKit
cd WebKit
git svn init -T trunk http://svn.webkit.org/repository/webkit
git update-ref refs / remotes / trunk origin / master
git svn fetch
git获取原点<分支名称>
git checkout<分支名称>
git pull --tags#从远程仓库中提取所有标签
git checkout< tag name> #从远程仓库检出标签
这会从git仓库中取出标签,然后将该标签签入您的工作副本。这当然假设git repo有这些标签或分支来获取和签出。
如果git repo没有这些标签,您将不得不使用git svn命令来做到这一点。
$ REF = $(git svn find-rev r< revision>)git checkout $ REF
$ git checkout -b< branchname> #如果你想从这个提交中创建分支
$ git tag< tagname> #如果你想从这个提交创建一个标签
git svn find- rev
找到指定的svn修订版的git commit ref。
Thank you. From the link http://trac.webkit.org/wiki/UsingGitWithWebKit, there are these 3 steps in checking out Webkit using git.
Which step i need to change to specify checkout a right version of Webkit for chromium?
Thank you.
git clone git://git.webkit.org/WebKit.git WebKit
cd WebKit
git svn init -T trunk http://svn.webkit.org/repository/webkit
git update-ref refs/remotes/trunk origin/master
git svn fetch
git fetch origin <branch name>
git checkout <branch name>
git pull --tags # pulls all tags from the remote repo
git checkout <tag name> # checks out that tag from the remote repo
This will pull down the tag from the git repo and then checkout that tag into your working copy. This is assuming of course that the git repo has these tags or branches to fetch and checkout.
If the git repo does not have those tags you will have to use the git svn commands to do it.
$ REF=$(git svn find-rev r<revision>) git checkout $REF
$ git checkout -b <branchname> # if you want to create branch from this commit
$ git tag <tagname> # if you want to create a tag from this commit
git svn find-rev
finds the git commit ref for the svn revision specified.
这篇关于如何使用git来检出指定版本的Webkit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!