Version Control — GitHub

May 22, 2022

 Keeping track of your code and its many versions

  • Centralized Version Control System (CVCS)
  • Distributed Version Control System (DVCS)


Centralized Version Control System(CVCS)


Distributed Version Control System (DVCS)



Repository — The repository is act as a central server that could be local or remote which is directly connected to each of the programmer’s workstation. Local Repository is a offline version repository only available in our local machine. Remote Repository is a main repository and online version repository, example : GitHub

Then, Initialize the git repository by using “git init” command. After the command .git file(hidden) created in the repository.


Use “git status” to check the status of the repository.




 After worked on the login branch saves and switch back to the master branch and then merge the login branch with the master(main branch). To merge use,


 



You Might Also Like

0 comments