70 likes | 204 Views
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.
E N D
Something that you should learn about … Yo-Ming Hsieh Subversion (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. • 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/
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.
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.
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.
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