-
Notifications
You must be signed in to change notification settings - Fork 49
Setting up local repository
Jonathan Mak edited this page Sep 26, 2018
·
3 revisions
-
Fork CKEditor repository on Github at https://github.com/liferay/liferay-ckeditor
-
Clone repository on local machine
$ git clone git@github.com:<USER_NAME>/liferay-ckeditor.git
$ cd liferay-ckeditor
- Add Upstream and Branches
$ git remote add upstream git@github.com:liferay/liferay-ckeditor.git
$ git remote add ckeditor git://github.com/ckeditor/ckeditor-dev.git
$ git branch 3.6.x origin/3.6.x
$ git branch ee-3.6.x origin/ee-3.6.x
$ git branch 4.0.x origin/4.0.x
$ git branch ee-4.5.x origin/ee-4.5.x
- git-svn Setup (3.6.x only)
NOTE: 3.6.x requires subversion.
IMPORTANT: In order to ensure a consistent git-svn commit tree in Git, git-svn must be initialized the same way on every repository. You must use the provided setup-git-svn.sh
script. If the git-svn init
in setup-git-svn.sh
needs to be modified, all existing 3.6.x branches/tags, including upstream and origin, may need to be deleted and recreated.
$ git checkout ee-3.6.x
$ git pull upstream ee-3.6.x
$ bash setup-git-svn.sh
Check your results (optional)
$ git branch -r
origin/3.6.x
...
origin/master
svn/3.6.x
svn/tags/3.6.6
Note: We are specifically looking for svn/3.6.x and svn/tags/3.6....etc
.git\config
...
[svn-remote "svn"]
ignore-paths = <SOME_REGEX>
url = http://svn.ckeditor.com
fetch = CKEditor/trunk:refs/remotes/svn/trunk
branches = CKEditor/branches/versions/*:refs/remotes/svn/*
tags = CKEditor/tags/*:refs/remotes/svn/tags/*
You should also have some binary files under:
_dev\langtool\langtool
_dev\releaser\ckreleaser