DEV Community

Alaguselvan T
Alaguselvan T

Posted on

Introduction about Git and GitLab

Git-Version Control system
1.what is git?
Git is a distributed version control system (VCS) used by developers to track changes in source code and collaborate on projects efficiently.
It was created by Linus Torvalds in 2005.

2.Installation of Git
Download git in any browser
Go to Command prompt
configure using -git config -- global user.name"Name"
-git config -- global user.email"emailid"

3.Basic worlflow in git and gitlab
Insert/Edit-->Add-->commit-m""-->push

4.Basic Commands in Cmd prompt
pwd->present working Directory
ls->list of Files
cd->change Directory

5.Basic Commands in Git
Clear---> Clear the history
git init ---> Initialize repository
git clone ---> Copy repository
git status ---> Check changes
git add ---> Stage files
git commit ---> Save snapshot
git push ---> Upload changes
git pull ---> Download updates
git branch ---> Manage branches
git merge ---> Combine branches
git log ---> View history
git branch ---> Check available branch
git branch -m branchname ---> To change branch name
git branch -a ---> show all branch
git branch newbranch3 ---> Add new branch
git checkout branchname ---> To change branch

GitLab

What is GitLab?
-GitLab is a web-based platform that uses Git for version control and provides a complete set of tools for software development, collaboration, testing, and deployment.
-Acts like a DataBase
-You can think of GitLab as Git + project management + CI/CD + DevOps tools in one platform.

Top comments (0)