Just enough Git

Just enough Git

Dear Friend,

27 years ago, a family friend visited our home and shared a simple yet powerful tip with me.

Start your day with two glasses of water to stay healthy and stronger.

At the time, I didn't appreciate the significance of this advice, but I began incorporating it into my daily routine by drinking water upon wake-up.

Many years later, I am happy to have made this a lifelong habit.

Okay, let's dive into the topic of week

Git is a tool for managing and tracking code changes.

Before we begin our discussion, I have two recommendations for learning anything:

  1. Learn the sequence of actions and the logical flow of the topic.
  2. Learn using a variety of methods such as flow diagrams, documentations and hands-on practice.

Alright, the illustration below shows the sequence of flow and relevant actions of git commands.

No alt text provided for this image

Quick documentation to support the sequence diagram illustration.

git init: Initializes a new Git repository in the current directory.

$ git?init        

git clone: Clones an existing Git repository to your local machine.

$?git?clone?https://github.com/user/repo.git        

git add: Adds a file or directory to the staging area.

$ git?add?file.txt ( to add only mentioned file to staging area )

$ git?add?. ( to add all modified files to staging area )        

git commit Commits changes to the local repository.

$?git commit -m?"Added new feature"        

git push: Pushes committed changes to a remote repository.

$ git?push?origin master        

git pull: Pulls changes from a remote repository to the local repository.

$?git pull origin master        

What's Next?

Play and learn git here

If you enjoyed the article, subscribe to DevOps Stories newsletter for weekly updates.

Rajesh Muthusamy

Platform Engineering Manager | CKA | 2x AWS | 3x GCP

2 年

Thanks Dev, happy to know you enjoyed playing with the tool.

回复

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

Rajesh Muthusamy的更多文章

  • Terraform in 6 Weeks - Week 2: Build a Scalable Static Website

    Terraform in 6 Weeks - Week 2: Build a Scalable Static Website

    Dear friend, The week 2 objective is to create a scalable and highly available static website hosted on S3, served…

    2 条评论
  • Terraform in 6 Weeks - Week 1: Architectural view

    Terraform in 6 Weeks - Week 1: Architectural view

    Dear Friend, In Week 0, we covered the basics of Terraform to get you started. Now, let’s dive deeper into Terraform’s…

    2 条评论
  • Terraform in 6 Weeks - Week 0: Laying the Foundation

    Terraform in 6 Weeks - Week 0: Laying the Foundation

    Dear Friend, Terraform is the gold standard in Infrastructure as Code (IaC), and mastering it is a skill that will stay…

    8 条评论
  • Understanding the OSI Model

    Understanding the OSI Model

    Dear Friend, The Open Systems Interconnection (OSI) model is a fundamental conceptual framework that illustrates how…

    2 条评论
  • Understanding Linux File Permissions

    Understanding Linux File Permissions

    Dear Friend, Linux file permissions are a fundamental aspect of the operating system's security model, determining who…

  • Kubernetes Networking

    Kubernetes Networking

    Dear Friend, In the world of kubernetes, we have different levels of networking requirements. Container-to-container…

    1 条评论
  • How To Design A Container-Based Application?

    How To Design A Container-Based Application?

    Dear Friend, Container is an important moving part of microservices architecture. You will need to place your…

  • The Journey Of A Code To Pod

    The Journey Of A Code To Pod

    Dear Friend, The journey of code towards Pod has multiple stages, and would feel overwhelming to dig the path. But…

    2 条评论
  • How Pods Connect Over Network?

    How Pods Connect Over Network?

    Dear Friend, Kubernetes allows unrestricted communication between pods by default. All pods can communicate with each…

    5 条评论
  • What The Helm?

    What The Helm?

    Dear Friend, In the Kubernetes world, there's no shortage of buzzwords. One among them is Helm.

    1 条评论

社区洞察

其他会员也浏览了