首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Window模式上使用gitstack引用一个已有的git库做server

2013-02-25 
Window模式下使用gitstack引用一个已有的git库做server首选要下载gitstack,地址:http://gitstack.com/down

Window模式下使用gitstack引用一个已有的git库做server
首选要下载gitstack,地址:http://gitstack.com/download/

GitStack is compatible with any existing git repository. The auto import feature will help you to migrate existing repositories.

We will use as an example the ruby on rails source code for this tutorial. Skip step 1 if you already have a repository to import.

1. Clone the code from github anywhere on your computer


In the windows command line :
cd c:\Users\Administrator\test
git clone https://github.com/rails/rails.git
A “rails” directory will be created in the current folder.





2. Copy the repository to GitStack

Copy the “rails” directory to C:\GitStack\repositories




3. Import the repository

GitStack will show your repository in the repository tab. You just need to click on the green button on the right to import your repository into GitStack. The import will convert your repository into a bare repository. Bare repositories are recommended when your repository is used by a server.






Congratulations. You have successfully imported a repository into GitStack.

热点排行