Table of contents
- What is Git and why is it important?
- What is the difference Between Main Branch and Master Branch?
- Can you explain the difference between Git and GitHub?
- How do you create a new repository on GitHub?
- What is the difference between local & remote repositories? How to connect local to remote?
- Task 1:
- Task 2:
Here I have completed the task related to how to connect Git and GitHub.
Day 9 Tasks :
What is Git and why is it important?
Git
is a version control system used to managesource code
andtrack changes
made to it. It allows multiple developers tocollaborate on a project by keeping a history of changes to the code
and allowing them to work on different versions of the code in parallel.It provides features such as distributed architecture, branching, and merging, which make it easier to
manage code development
andcollaborate effectively
.Overall, Git is important because it enables efficient and effective software development by providing a centralized repository of code, version control, and collaboration tools.
What is the difference Between Main Branch and Master Branch?
The difference between "main" and "master" branches is purely a matter of naming convention. Functionally, they work the same way and can be used interchangeably.
Both branches represent the main line of development in the repository and are used to track the latest stable version of the code.
Can you explain the difference between Git and GitHub?
Git
is aversion control
system that allows you tomanage
andtrack changes
to yoursource code
. It is a software tool that youinstall
on yourlocal computer
and use to manage yourcode repositories
.GitHub
is a web-based platform that provides a centralized location forhosting Git repositories
. It is aweb-based service
that allows you tohost your Git repositories
andcollaborate with others on your code
.
How do you create a new repository on GitHub?
step 1:
step 2:
Now hit enter to Create Repository
. Thus how we created our repository on GitHub.
What is the difference between local & remote repositories? How to connect local to remote?
A local repository is a copy of a codebase that is stored on your local machine. It includes all the files, directories, and version control information related to a particular project.
In contrast, a
remote repository
is a version of the same codebase that is stored on a remote server, typically in the cloud.