2012/03/05

First Step with Git

許多 Plone Collective 程式碼都從 subversion 搬到 git 了,今天拿 Products.AutocompleteWidget 當例子,記錄操作過程:

$ cd src
$ git clone https://github.com/collective/Products.AutocompleteWidget.git
Cloning into Products.AutocompleteWidget...
remote: Counting objects: 217, done.
remote: Compressing objects: 100% (107/107), done.
remote: Total 217 (delta 88), reused 215 (delta 86)
Receiving objects: 100% (217/217), 50.84 KiB, done.
Resolving deltas: 100% (88/88), done.

$ cd Products.AutocompleteWidget
$ git status
# On branch master
nothing to commit (working directory clean)

不過,比對程式碼之後,發現最新版本的內容,還是源自於 subversion,目前 1.4.0 是以 http://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/Products.AutocompleteWidget/branches/improved_multivalued_fields_management 為基礎。

No comments: