1 / 7

S ub v ersio n (SVN)

Something that you should learn about … Yo -Ming Hsieh. S ub v ersio n (SVN). Outline. Introduction Easy as 1-2-3 Why Summary. Introduction. Version control is important if you work on multiple computers. if you work in a team. when you make mistakes.

cece
Télécharger la présentation

S ub v ersio n (SVN)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Something that you should learn about … Yo-Ming Hsieh Subversion (SVN)

  2. Outline • Introduction • Easy as 1-2-3 • Why • Summary

  3. Introduction • Version control is important • if you work on multiple computers. • if you work in a team. • when you make mistakes. • if you are going to survive in coming years. • SVN Repository • http://140.118.105.174/svn • Is where your storage of your files (codes, UML charts, documents, …) for your research work. • Nice GUI http://tortoisesvn.tigris.org/

  4. Easy as 1-2-3 (1/2) • Setup your own repository • Work in a folder on your own computer. • When you are ready, do a SVN IMPORT to import your work into SVN repository • Setup your local copy • Do a SVN CHECKOUT to an empty folder. • In the new folder, check its content. It should be identical to your original folder. • Now, delete your original folder.

  5. Easy as 1-2-3 (2/2) • When you work • Before you start working, always do a SVN UPDATE to see if there is any change. • After you finish work and you are happy, do a SVN COMMIT to save your work back to the repository. • You may need to use SVN ADD, SVN DEL, SVN COPY, SVN MOVE to manipulate files or folders in the repository.

  6. Why? • Our SVN repository server is stable and has regular backup. • You can always go back to a certain revision if you want. (e.g. after you made stupid mistakes) • You can always compare files of different versions (revisions) to see the difference. • You can work on different computers without worrying which file needs to be copied, and which computer has the latest version of your code. • You can easily work on Windows & Linux to develop a cross-platform program.

  7. Summary • Use SVN to store your work, both your code & your documents. • This is a living proof on how hard you work. • I can help you more on your coding. • Four simple actions • SVN IMPORT • SVN CHECKOUT • SVN UPDATE • SVN COMMIT

More Related