Introduction Version Control
What is Version Control
<aside>
💡 Version Control is:
- When we do our work with digital file such as .docx or if in programming .js /html. We might not be able to finish our work on that day. The work may length for days or even months.
- In those cases, those files must be managed and can be tracking for their changes that occurs in that file and it is called by Version Control.
- Example, if we commit manual version control is like this case:
- Final_Examination.docx (Our final assignment for our dear lecture)
- Final_Examination_v2.docx (After some review from our dear lecture)
- Final_Examination_Fix.docx (Another fix-review from our professor)
- Final_Examination_Fix_StopPlease.docx (Maybe last fixed exam)
- Final_Examination_OhMyGod😭.docx (Final yeay)
</aside>
<aside>
💡 Proceed:
- Actually, we can do alternative to overwrite our file.
- But when there is a bug / mistake in writing and it is quite far already (from start point), We cannot use the previous version.
- Then how do we if want to work with other people in the same file?
</aside>
<aside>
💡
</aside>
What is GitHub? or GitLab?
<aside>
💡 What is GitHub or GitLab
- After we can understand vcs that can be done in our local computer.
- If we want to store our code or our file on a host, it can be eased by using GitHub that is integrated with Git online and can be accessed from any local computer.
</aside>
GitHub vs Git
<aside>
💡 GitHub is not same with Git.
- Git is an open-source version control system (a software)
- GitHub is a company that run service for hosting file on the internet using GIT system.
So, not only GitHub that utilizes GIT system.
</aside>
Visualization
For example, in version 3
there is a bug. We need to go back to version 2
Therefore, version bug can be assumed not to use
Teamwork Case
1
For instance, we got another friend. Where he added another code.
2
After adding more code, our friend input that code into his Branch Code
3
Let’s say ours is version 2. While our friend code old version of version 1.
Our friend will need to push or request.
4
Then there will be Merged version. In first person or our computer. There will be “Branch Code.”
So, the new version will emerge.
<aside>
💡
Version Control System:
- Therefore, we need a system to ease us in having
version control
on our file.
- Version Control System create us to do
tracking changes
,undo changes
,compare version
, cooperate with other people on a same file and many more.
- One of version control that commonly use is Git.
- The good news, Git is Free, it can be accessed from our computer for free and it is an open source.
</aside>