Every content here is my original work.Creative Commons Licence
Universitas Scripta is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Your cookies may be used by Google and mathjax. See Google's privacy policy.

Monday, 3 November 2014

How to use easiest version control system

When you lost your data or history by crash or accidently saving process, you might be very frustrated. People usually use Dropbox, but Dropbox cannot sync into custom directories, multiple history branches, and massive collaborators. I will introduce intuitive guide to one of version control system 'git', which supports multi-branch, multi-collaborator projects.

The only point people might hesitate may be that git is open-source-based: mostly you are forced to share your sources you uploaded on the git repositories. There is good service which avoid this license: bitbucket, which gives up to 5 free private repositories per user. This service is provided by Atlassian who also provides git client program with intuitive user interface: SourceTree.

First, you should make your repository on the server e.g. bitbucket. Then, you should clone your server repository into a blank directory of your local disk. When you change your local file, the sourcetree app shows what is changed, and you can 'commit' to make a node to the history line. 'push' pushes the nodes to the server and make changes to the server which are shared to all collaborators. If there are conflicts between collaborators, it automatically merges, or you can fix it in your way. When you transfer into another branch, data of the local repository changes, so you should be aware of it.

No comments:

Post a Comment