Merging Conflicts | GIT Version Control Understanding Urdu Hindi 5
Автор: Enlighter
Загружено: 2022-04-24
Просмотров: 5
Описание:
Git is a version control system that developers use all over the world. It helps you track different versions of your code and collaborate with other developers.
If you are working on a project over time, you may want to keep track of which changes were made, by whom, and when those changes were made. This becomes increasingly important if you end up having a bug in your code! Git can help you with this.
But Git can also be a bit scary and confusing when you first start learning it, so in this article I will introduce Git in a humanly understandable way. We'll cover topics such as repositories, commits, branches and much more, so let's get started!
Here's what we'll go over in this article:
• What is Git?
• What is GitHub?
• How to get started using Git
• How does Git track changes?
• A typical Git workflow
• Online course to learn Git version control
What is Git?
Git is a version control system that you download onto your computer. It is essential that you use Git if you want to collaborate with other developers on a coding project or work on your own project.
In order to check if you already have Git installed on your computer you can type the command git --version in the terminal.
If you already have Git installed then you will see what version you have. If you don’t have Git installed you can visit the Git website and easily follow the download instructions to install the correct version for your operating system.
What is GitHub?
GitHub is a product that allows you to host your Git projects on a remote server somewhere (or in other words, in the cloud).
It's important to remember that GitHub is not Git. GitHub is just a hosting service. There are other companies who offer hosting services that do the same thing as GitHub, such as Bitbucket and GitLab.
The difference between GitHub and Git
How to Get Started with Git
Terminal vs GUI
You can either use Git by typing commands in the terminal or you can use a graphical user interface (GUI) such as Sourcetree or GitKraken.
If you choose the terminal, you will have to look up which Git commands you will need.
Luckily you don’t have to learn these by heart. Other than a handful of commands that you will use most often, the rest you can look up whenever you need them (this is what most developers do, even those with decades of experience). Git offers in-depth documentation on their website.
If you choose to use a GUI, then the various actions you need to take will be displayed in a more visual manner.
Whether you choose to use the terminal or a GUI, you will need to understand the basics of how Git works in order to use it confidently.
For the rest of this article, we will share examples using Git in the terminal. But the steps we share are very similar if you are using a GUI.
How to Prepare your Project Folder in Git
To use Git we need to have a project that we want to version control. This can either be a new project or an existing project.
If it is a new project, then we need to create a new project folder (hint: we can use the mkdir command) and then navigate into that project folder in the terminal.
If we were to choose an existing project then we simply navigate into that project folder in the terminal.
In our example, we will create a new project folder called novel.
Creating our project folder
How to Create a Git Repository
Once we are in our project folder, in order to start using Git we will need to create (or initialize) a repository using the git init command.
Once we execute the command by typing it in the terminal and pressing enter, it will probably seem like not much happened. But don’t be deceived, Git can be sneaky sometimes and it carries out a lot of actions behind the scenes.
In order to see what Git did behind the scenes we will have to view our hidden files. Make sure to open your project folder in your file system. Then, if you are on a mac you can select Command + Shift + Dot in order to see hidden files in your file system. If you are on a windows OS then you can change your view settings in order to view hidden files in your file system.
In order to view hidden files in the terminal we can use the command ls -a.
What we should see now is a .git folder inside our project folder. This is generally what represents our repository.
GIT, Version , Control , GitHub , python , machine learning , Repository , Trunk , Branch , Revision , programing , Commit , Revert , Merge , Conflict, deep learning , kaggle , software engineer , main , code
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: