What is Git:
Git is a open source distributed version control system and It will manage and keep tacks your changes of your projects. It has a command line and GUI tool for pushing , committing the projects to the GitHub, BitBucket or GitLab.
Some basic commands for Git:
- git version: To check the current version of git.
- git init: To track the files
- git add: To add files to the staging area.
- git rm: To remove files from the staging area.
- git commit: To take a snapshot of changes in our files.
- git status: To see both tracked and untracked changes by git and the current branch.
- git log: To see all the commits in git and the current branch.
- git pull: To fetch and download content from a remote repository and immediately update the local repository to match that content.
- git push: To upload content from the local repository to the remote repository.
- git clone: To make a copy of the existing repo in a new directory in our local machine.
- git remote: To connect a local repository with a remote repository.
- git branch: To create a branch in our git repository.
- git checkout: To switch current branches in git.
- git merge: To merge other branches into the current branch.
What is GitLab and GitHub:
Both are GitLab and GitHub are web-based Git repositories.
What is a Git Repository:
A Git repository is a virtual storage of your project. It allows you to save your project code, which you can access when needed.
Are GitLab and GitHub the Same Company:
Both services are offered by completely different companies. GitLab Inc. is a privately owned and GitHub is a child company of Microsoft.
Difference Between GitLab and GitHub:
GitHub | GitLab |
---|---|
In GitHub, Issues can be tracked across multiple repositories. | In GitLab, Issues cannot be tracked in multiple repositories. |
No ability to export issues as a CSV file | Ability to export and email issues as a CSV file |
GitLab also provides free unlimited private repository and unlimited collaborators. | GitHub allows users to have free unlimited private repository but with maximum of three collaborators. |
In GitHub, We can integrate with Jira. | In GitLab, We can integrate with Jira. |
Continuous integration only via third-party tools such as Travis CI, CircleCI, etc. | Free continuous integration functionality included |

Leave a comment