GIT Version Control System

  • Complete change history of the file Simultaneously working
  • Branching and merging
  • Traceability
  • Localized version control system
  • Centralized version cotrol system
  • Distributed version control sysem
Localized VCS
  • Administrators have control over other developers
  • Same information are shared among the all memebers in the project
  • Easy user interaction
Git Branching
//To list the available branch
$ git branch
//Create new branch
$ git branch <branch name>
//Delete the branch
$ git branch -d <branch name>

Git Workflow — Git Commands

$ git clone <repository URL>
$ cd <path of the project folder>
$ git init
$ git config --global user.name "Enter your user name"
$ git config --global user.email <enter your github email>
$ git add .
$ git add <file name>
$ git commit -m " enter a commit message"
$ git remote add origin <Remote repository URL>
// push chnages to specific branch
$ git push origin your-branch
//push to the main branch
$ git push origin main

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store