Find the answers by your understandings(Shoulden't be copied by internet & used hand-made diagrams) of below quistions and Write blog on it.
What is Git and why is it important?
Git is like a safety net for your projects, allowing you and your team to work freely, knowing you can always go back to earlier versions if something goes wrong. It's crucial in software development because it supports collaboration, tracks changes, and helps manage complex projects efficiently.
Imagine you're working on a giant puzzle with a group of friends. Everyone is working on different parts of the puzzle at the same time, and sometimes you need to undo some pieces because they don't fit right. Git is like a magical puzzle assistant that helps you in a few key ways:
Tracking every change.
Allowing parallel work.
Keeping versions safe.
What is difference Between Main Branch and Master Branch??
The difference between "main" and "master" in Git is simply the name. Originally, Git used "master" for the default branch. Recently, to promote inclusivity, many projects and platforms switched to using "main" instead. Functionally, they are the same; it's just a change in naming convention.
Can you explain the difference between Git and GitHub?
Imagine Git is a toolbox that helps you keep track of changes to your projects (like drafts of a book), and GitHub is a library where you can keep those projects so others can see them, contribute, or borrow from. Git works on your computer, helping you manage your work, while GitHub is a website that lets you and others store and work on projects together online.
How do you create a new repository on GitHub?
What is difference between local & remote repository? How to connect local to remote?
Local repository is like your secret diary where you keep your project's secrets. A remote repository is like a public noticeboard online where everyone can see and share what's in their diaries.
Connecting your local repository to a remote one is like setting up a bridge between your secret diary and the public noticeboard
Tasks
task-1:
Set your user name and email address, which will be associated with your commits.
Set your username:
git config --global user.name "Your Name"
Set your email address:
git config --global user.email "your.email@example.com"
check your settings:
git config --global --list
task-2:
Create a repository named "Devops" on GitHub
Connect your local repository to the repository on GitHub.
git remote add origin <repository_url>
Create a new file in Devops/Git/Day-02.txt & add some content to it
Push your local commits to the repository on GitHub
Thank you for reading my blog. Don't forget to follow, comment and like my blog.