?? Day 9 of 90 Days DevOps Challenge: Deep Dive in Git & GitHub for DevOps Engineers
Day 9 : Deep Dive in Git & GitHub for DevOps

?? Day 9 of 90 Days DevOps Challenge: Deep Dive in Git & GitHub for DevOps Engineers

??Completed Day 9 of 90 Days DevOps Challenge: Deep Dive in Git & GitHub for DevOps Engineers! ??

What is Git and why is it important?

Git is a distributed version control system that helps developers track changes in their code. It's essential for DevOps because it enables collaboration, version control, and the ability to work on projects simultaneously without conflicts.

What is the difference between Main Branch and Master Branch?

In Git, the "Master" branch was historically used as the default name for the primary branch. However, it's important to be inclusive and considerate of the terminology. Some prefer to use "Main" instead of "Master" to avoid any negative connotations. It's a small but impactful change in terminology.

Can you explain the difference between Git and GitHub?

Git is a version control system, while GitHub is a platform for hosting and collaborating on Git repositories. Git is the tool, and GitHub is where you can use Git for collaborative software development. ??

How do you create a new repository on GitHub?

Here are the steps to create a new repository on GitHub:

1. Log in to your GitHub account.

2. Click the "+" sign in the top right corner and select "New repository."

3. Fill in the repository name, description, and other settings.

4. Click "Create repository."

What is the difference between a local & remote repository, and how to connect them?

- Local Repository: This is on your computer, where you work on your code.

- Remote Repository: This is hosted on a platform like GitHub, where you can collaborate with others.

To connect a local repository to a remote one:

1. Set your username and email for your commits using git config.

2. Create a repository on GitHub.

3. Link your local repository to the remote one using git remote add origin <repository URL>.

4. Push your local commits to the remote repository using git push origin <branch name>.

Tasks:

Task 1: Set your username and email address to identify yourself with your commits

using git config.

Task 2: Create a repository named "Devops" on GitHub following the steps mentioned above.

Task 3: Connect your local repository to the GitHub repository by adding the remote

using git remote add origin <repository URL>.

Task 4: Create a new file in Devops/Git/Day-02.txt and add some content to it.

You can use touch Day-02.txt to create the file

and

git add, git commit, and git push

to save your changes.

#DevOpsChallenge #Git #GitHub #DevOps #VersionControl #Collaboration #awscloud #cloudwithDevOps #DevOpsAWS #90DaysDevOpsChallenge #BlogonDevOps

要查看或添加评论,请登录

Obaidur Rehman Khan的更多文章

社区洞察

其他会员也浏览了