What is use of GIT?
It is used for version controlling. It is kind of version controlling system. Currently there are so many version controller’s present in the market some of them are premium also but nowadays people preferred to use GIT.
Also we had VSTS, Microsoft was the authorized. Currently so many people used it.
The use of VSTS is “Multiple user single branch”. While in GIT “Multiple user multiple branch, Single user multiple branch (any pairing is possible)”.
Number version controller are like,
1) Microsoft Azure.
2) Bit Bucket (Owner Atlassian).
3) Git-Lab (Ticket management also perform here)
Currently Microsoft has buy the GITHub.
1) Git Clone
Here I am giving you the example of GIT Hub. But you can easily get the idea.
Open https://github.com/ and try to perform the registration operation. Then after try by yourself, DESIGN REPO.
Now let’s idea regarding the Cloning.
• You can perform the cloning operation by using SSH and HTTPS.
Which one is more secure SSH OR HTTPS?
• SSH but nowadays at enterprise level people uses the HTTPS.
Who uses the SSH?
• The person who has work related to machine oriented or high level of codes. Those are more-more concerned about security violation, those people design using SSH keys.
What is GitHub Desktop?
• It is a kind of UI. Like Big bucket has Source tree.
After Cloning next thing came into picture it like “Your boss will assign you the story. The story contain some number like HOSMNGT-1900 (Imagine it as ticket number)”.
So you have to design the feature branch. “git checkout –b HOSMNGT-1900”. Using this command new branch gets generated.
Now each branch has a source.
As you can see in the above image, it shows the branching Graph. For example the standard organization can never violate the graph.
Now you have question what is Branching Graph?
The Graph has a pattern. When the team decide the project management at that time they also design the branching strategy. Like for example “feature” always move to the DEV.
Feature–> Dev–> release UAT DEV PROD-BLUE PROD-GREEN (PROD means Production).
Whenever the ticket design parallel the estimation also join. Here is the example
“HOSMNGT-1900 5”, here you specify the 5 story point means you required 5 days to complete the task. Also remember the time period (5 Days For example), your DOD (Definition of DONE) must be finished within 80% of time period.
What it branching?
So from website point of view consider HOME PAGE, About Page. This is termed as branching.
How can we get all the Branching details?
USE of “GIT BRANCH” Command to get the all the branching details.
USE of “GIT STATUS” Will show me how many changes files are there.
Use of “GIT ADD”, there are different way to use GIT Add, Like you can use the “GIT ADD .”, “Git add *.ts”.
What is “GIT ADD *.ts” and “GID ADD .”?
First one will check in only .ts files. While the second command will check in all the files.
What is “GIT Commit –m “ADMOBS-1900: Working on Home Page” ”?
Give the perfect comment. So in future easily get it.
What is Ticket?
Ticket is kind of user story. In the beginning it will be in TO DO list. When development gets started then the status will be “On Going”. Later the status will be “Complete -> Testing IN QA -> Blocker -> QA Verified -> FAIL or FINAL APPROVED”.
What is Blocker?
Imagine that you are performing payment integration task in your project. And somehow any change in the strategy, and they said ok you have buy the premium thing but we have some change so at that time you cannot continue with the feature. This is moved in the blocker.
What is “GIT PULL ORIGIN feature/ ADMOBS-1900”?
We need to use the PULL why because imagine that two user working on the same branch. We need to perform the GIT Pull.
What is “GIT PUSH ORIGIN feature/ ADMOBS-1900”?
This is how you can generate the feature and latter you can generate the PR.
What is “Git Fetch –all”?
It will fetch the changes/log which had done at REPO Level.