DEV Community

PRIYA K
PRIYA K

Posted on

GIT

GIT(Global Information System).
Version Control System.
A tool that helps developers track changes in their code over time and allows multiple people to work on the same project at once,even offline.
Created by Linus Torvalds in 2005 for developing the Linux Kernel.
It lets you record snapshots of your project (called commits) so you can:
Go back to earlier version if needed.
See who made what changes .
Work on the same project with others without overwriting each others work.
GIT is used to collaborate on code.
GIT helps you keep track of code changes.

GITHUB
GITHUB is a web-based GIT repository hosting service.

GITHUB alternatives
Bit Bucket
Git Bucket

INSTALLATION
step 1:Register -> sign in ->sign up in GITLAB
step 2: Install VisualStudio
step 3:

In Command Prompt
Copy - ctrl + shift + C
Paste - ctrl + shift + V

Command Prompt

1. check the Git Version
   git --version
2. Install Git by command
   sudo apt install git
   password: Welcome@123
   y / n
   y
3. Updating latest Version
   sudo apt update
4. Updating System
   sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

step 4:
In GITLAB
Group -> New group -> Create Group -> Group Name -> Visibility level -> Public -> Who will be using this group? Just me -> Create Group

step 5: Click Project -> Create Blank Project -> give project name -> Change Visibility Level -> Create Project

GIT CLONE
Step 1: In GITLAB
Select Group -> Project -> Click that particular Project -> Code -> Clone with HTTPS -> Copy URL

Step 2: Select Location in Computer Folder
File Manager -> Documents -> right click -> create New Folder -> Select that particular folder ,right click -> Open In Terminal

step 3:
In Command Prompt:

git clone (Paste the copied URL)
Enter fullscreen mode Exit fullscreen mode

If you want to change the visibility level:
change public to private by,

step 1:Click the profile on top right corner
step 2: Click Group -> Click Group Name -> Settings -> general -> Change public into private -> Saved changes

Need to Know in Simple words
ReadMe : products catlogue
Config : connect GIT and GITLAB
Clone : Copy
SSH : secured shocket
It is used by password and gateways.

Questions

1... Git and Gitlab

git :

  • Distributed version control system
  • multiple developers works on same code base
  • merge
  • local machine gitlab:
  1. web based devops platform
  2. software development life cycle
  • analysis
  • plan
  • design
  • develop
  • test
  • deploy
    1. CI/CD

2...Difference between distributed version control system vs centralised version control system

3...Git Conflict

  • Stash
  • Stash Pop

Top comments (0)