Commit a66c6135 authored by Nanditha Nair's avatar Nanditha Nair

Update week02.md

parent 7ceb6bf2
Pipeline #154118 passed with stages
in 34 seconds
......@@ -2,7 +2,8 @@
##Git
<p>Git is a Distributed Version Control System to locally track changes in your files/folders and Push and Pull changes from remote repositories like GitLab, GitHub, BitBucket etc and collaborate in teams. It is free and open source.
Let us say I have a file that I want to work on, I want to maintain all the changes
and I want to check all the changes I made to this file, I can use some version control system that will check all the changes in the file and it will maintain all the version history. So I can go back and see any version and look at all the changes that were made to the file. So it is a version control system when we are working on any source code or when we want any file or folders and we want this file controlled by </p>
and I want to check all the changes I made to this file, I can use some version control system that will check all the changes in the file and it will maintain all the version history. So I can go back and see any version and look at all the changes that were made to the file. So it is a version control system when we are working on any source code or when we want any file or folders and we want this file controlled by
Git was created by Linus Torvalds in 2005 for development of the Linux Kernal.</p>
<p align="center"><img alt="Version Control System" src="../../images/week02/vc.png" /></p>
<p align="center"><img alt="Version Control System Team" src="../../images/week02/vcsteam.png" /></p>
......@@ -14,6 +15,9 @@ and I want to check all the changes I made to this file, I can use some version
<p>There is a repository just like in the CVCS, but every person can pull and create his own local repository. Work Station 1 has his own copy. So one of the major advantages of this system is that if anything goes wrong on the server we can back up the repository from any one of the local systems because these are the complete copies of the repository. Every person does not need to be online every time. One can pull the repository and keep on working on it in an offline mode and you will need an internet connection only when you want to push the changes or pull data from the repository.</p>
<p align="center"><img alt="Distributed Version Control System" src="../../images/week02/distributed.png" /></p>
## Set up Git
<p align="center"><img alt="Git" src="../../images/week02/git.png" /></p>
##GIT Lab
<p>Git Lab is a web based repository manager, or it is simply a website to upload your repositories online.
<br>It provides a backup on cloud
......@@ -29,6 +33,8 @@ and I want to check all the changes I made to this file, I can use some version
<p align="center"><img alt="Workflow" src="../../images/week02/workflow.png" /></p>
<p>A remote repository is placed on a server. We can do a clone/pull to take all the repositories present here into our local system. So here we can get all the repositories. Let us say, we have all these 4 repositories or different branches of the repositories. Now we can take or check out any branch. It will create a working copy for us and now we can do all our work on our working copy, we can be offline for this and we can do all the changes here. Once we are done with our changes, we can do a “add” command. “Add” command will put all our changes on a staging area, it will still not commit the changes but just put on a staging area. Then we have to execute a “commit” command which will make all our changes and commit it to the local repository. Even at this point, the changes are still not made on the remote repository. We have to again do a “push” command which will push our changes to the remote repository.</p>
## Set Up GitLab and SSH
##Git Commands that I used
<br><b>Cloning an existing repository</b>
<br><b>git clone</b>
......@@ -54,6 +60,15 @@ git commits can be captured and made locally, then pushed to a remote server as
## MkDocs
## Building the Website
## HTML Basic
## Text Editor
We need a text editor application for editing HTML document, we can use normal notepad or Vim, GNU Nano, Visual Studio Code etc.
I downloaded and used Visual Studio Code
VS code is a Open Source editor developed by Microsoft
## Package manager: chocolatey
pip
python
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment