APP下载

基于Git的代码托管平台JLUCODE

2017-01-14侯效永李良伟孙召宋春雨杨昊

计算机时代 2016年12期

侯效永+李良伟++孙召+宋春雨+杨昊++韩霄松

摘 要: 软件版本控制在软件行业的作用十分重要,而大多数在校学生对版本控制的了解却知之甚少。通过分析对比三大版本控制系统CVS、SVN、Git的优缺点,基于Git设计并实现了一个吉林大学代码托管平台JLUCODE,通过Git协议与Web平台实现本地与服务器的通讯。该平台主要实现代码托管、统计分析、论坛讨论和作业管理等功能,以帮助学生学习、理解版本控制的意义,提升自身的能力,更好地管理源码、完成作业。

关键词: 版本控制; 代码托管; Git; 代码分析

中图分类号:TP317 文献标志码:A 文章编号:1006-8228(2016)12-32-03

Abstract: Software version control plays a very important role in the software industry, but most of the students in the school know little about it. In view of this situation, the advantages and disadvantages of three revision control system, CVS, SVN, and Git are analyzed and compared in this paper. And a code hosting platform based on Git, JLUCODE, for the teachers and students of Jilin University is designed and implemented, the communications between local and server are realized through the Git protocol and Web platform. The platform mainly realizes the functions of code hosting, statistical analysis, forums and exercises management, to help students to learn and understand the meaning of version control, enhance their ability to better manage the source code, to complete the work.

Key words: version control; code hosting; Git; code analysis

0 引言

版本控制(Revision Control)是一种软件工程技巧,借此能在软件开发的过程中,确保由不同人所编辑的同一代码文件都得到同步[1]。软件版本控制致力于帮助程序员管理他们的项目资产,这是一门不可或缺的技术,如若软件的开发没有版本控制,开发项目定然会岌岌可危[2-3]。

为了让更多的程序员能有效并且更加简单地管理自己的源码资产,代码托管便应运而生。代码托管(Code Hosting)是基于版本控制系统开发的,也可以说是由版本控制系统派生出来的,只有以版本控制系统为基础而设计开发的代码托管平台才有其存在的必要,版本控制是代码托管的基石,其优劣也影响着托管平台的优劣[4-5]。

1 版本控制和代码托管平台

1.1 三大主流版本控制系统

在当今的软件开发行业中,主流的版本控制系统分别是CVS(并发版本系统)、SVN(集中式版本控制系统)、Git(分布式版本控制系统)。……

登录APP查看全文