Version Control Current Time:


WEEK 3

VERSION CONTROL


Intro to Webhosting

  • System that allow people to view our webpage
  • Places to update webpage, as well as check code of website
  • One example could be Github, which it allows to search different open sources
  • In order make available on www to share, you need to

    1. Login your Github account
    2. Start a project and create a Repository(example: EP1000)
    3. In the Repository, find setting then Github pages, change source, from none to master branch
    4. Upload, drag and drop your web page written in HTML (example: index.html OR mypage.html)

    Now you should have your website and everyone can see, just enter https://(name).github.io/(repository name)/ , you should able to see own design web page.

    Example: https://leehengwei.github.io/EP1000/

    Intro to GIT (Using Github Desktop)

    What is GIT(Github Desktop)

  • Is a distributed version-control system for tracking changes in source code during software development
  • Could act as folder which stores different version of file
  • Using Github Desktop, after linking to the repository
  • After linking to the repository, now try to edit the html page using own web editor
  • After editing, return back to github desktop, there would be update on changes tab.
  • Lastly, press "commit to master" and "push to origin" which updates have been made on the web editor
  • How to revert previous version of code??

  • Instead of changes tab, there is a history tab, all changes made will be saved in it.
  • Line highlighted with red is previous changes and green is what changes have made and upload
  • Choose a version would like to revert to, right click and choose "revert this commit"
  • Click that arrow to push to origin, updates should be made on the web editor
  • Assignment 3

    Time(approximate) Task
    2~3 hours Create similar webpage to guide what we have done for pass 3 weeks.

    Specifications

    Your webpage should be containing:

  • What we learnt from week_1, week_2, week_3
  • Try use other tags to design a weboage(not neccesary but give a try)