versionControl/exercises.rst
changeset 146 d1e3cf871f0a
parent 142 3b1c7aa6f807
child 150 8526f94072f6
equal deleted inserted replaced
145:48747fbfe47a 146:d1e3cf871f0a
     1 ==============================
     1 ==============================
     2  Version Control -- Exercises
     2  Version Control -- Exercises
     3 ==============================
     3 ==============================
     4 
     4 
     5 1. Check out the repository from http://fossee.in:9000
     5 1. ``clone`` the repository from http://fossee.in:9000 into a directory
       
     6    called sees. You should see a folder ``punchagan`` with a lone directory
       
     7    ``01-mercurial`` inside that. The ``log`` should show you the lone commit
       
     8    of the repository. 
     6 
     9 
     7 #. Set your username and email id in you global user preferences. 
    10 #. The next step is to create a folder for yourself inside the repository.
       
    11    The idea is to create a central repository for the course, where every
       
    12    participants files are put in his own folder (within a chapter
       
    13    sub-folder). You are expected to commit future class-work to this
       
    14    repository. 
     8 
    15 
     9 #. Add a copy of the folder, ``punchagan`` with your own name. The
    16    Before beginning this exercise, set your username in you global ``hgrc`` 
    10    ``01-mercurial`` folder needs to have only ``questions.txt``. You need not
    17 
    11    copy the ``people.txt`` and ``story.txt`` file. Commit your changes with a
    18 #. Create a new sub-folder (at the same level as ``punchagan`` with your
    12    meaningful commit message and push them.
    19    name.) Add ``01-mercurial`` as a sub-folder to it. Copy the
       
    20    ``questions.txt`` from ``punchagan/01-mercurial`` to
       
    21    ``<your-name>/01-mercurial``. Now, commit your changes with a meaningful
       
    22    commit message and ``push`` . If ``push`` fails, ``pull`` , ``merge``,
       
    23    ``commit`` and then ``push``.
    13 
    24 
    14 #. Pull from the repo. Update. Use ``hg log`` to see the log history of the
    25 #. Pull from the repo. Update. Use ``hg log`` to see the log history of the
    15    repository.
    26    repository.
    16 
    27 
    17 #. Answer the questions in ``questions.txt``. Commit your changes with a
    28 #. Answer the questions in ``questions.txt``. Commit your changes with a
    18    meaningful commit message and push them.
    29    meaningful commit message and push them. (If required, ``pull`` ,
       
    30    ``merge``, ``commit`` and then ``push``)
    19 
    31 
    20 #. Wait for your neighbor to finish making his/her changes. Help him/her if
    32 #. Wait for your neighbor to finish making his/her changes. Help him/her if
    21    required. Once both of you are ready, pull changes from the repository and
    33    required. Once both of you are ready, pull changes from the repository and
    22    update. 
    34    update. 
    23 
    35