DEV Community

muthukumarasamy thangavel
muthukumarasamy thangavel

Posted on

GIT

What is Git?
Git is version control system and open source
There are Two types version control system:
• Distributed version control system
• Centralized version control system

Before version control system:

• Every developer working in the module save the same system
• Daily basics working the team save on the same system
• Once consider the deployment before all correct module send main system
• This is the before version control system
*Centralized version control system: *

• Create a remote repository
• All access the form remote repository
• Automation the process this method same as before version control system
• Directly access the files Developer, testers
• Any changes the file total collapse
• Recently used bug not identify easily

• Project collapse the all module
• So this method couldn’t working

Distributed version control system:

• Create a remote repository
• Every developer and tester our local system create the local repository
• All changes from the local repository
• So don’t touch the remote repository
• Strong support for non-linear development (thousands of parallel branches)
• Simple design,speed,fully distributed
• Human error will correct this system
• Easily merge the code identify the conflict not effect by the main repository
• Able to handle large projects like the Linux kernel efficiently (speed and data size)

GIT:
A version control system tracks the history of change as people and teams collaborate on projects together, as developer make changes to the project any earlier version of the project can be recovered any time.

Basic Git commands:

  • git status # Check repository status

  • git add . # Stage all files

  • git commit -m "Intial commit" # Create a commit

  • git clone # Download a repository

  • git pull # Get latest changes

  • git push # Upload changes

Git Install LinuxOS:

  • git --version
  • sudo apt install git.git
  • Again check the version

Top comments (0)