Skip to main content

Command Palette

Search for a command to run...

Day 12 : Git and GitHub Cheatsheet

A quick summary of all essential Git commands

Updated
2 min read
Day 12 : Git and GitHub Cheatsheet
A

A DevOps Engineer ♾ with a passion for learning and improving. I believe that the only limits we have are the ones we set for ourselves and I'm excited to see how far I can go with my career. With hard work and dedication, I'm confident that I can create something that really makes a difference.❤🕊

Quick Summary ✏

  • git config: Configure Git settings.

  • git init: Initialize a new Git repository.

  • git clone: Create a copy of a remote repository.

  • git status: Check the status of your files.

  • git add: Stage changes for commit.

  • git diff: View differences between changes.

  • git reset: Unstage changes or reset to a previous commit.

  • git commit: Save changes with a commit message.

  • git branch: List, create, or delete branches.

  • git checkout: Switch to a different branch or commit.

  • git merge: Combine changes from one branch into another.

  • git log: View commit history.

  • Whether you're a Git novice or a seasoned pro, this Git cheat sheet is your go-to guide for mastering version control. This concise reference is packed with essential Git commands helping you streamline your coding journey and collaborate seamlessly with your team.

✉Endcard:

🎉 Thank you for joining me on this insightful journey into the world of DevOps!

❤ If you found this blog helpful and informative, don't forget to give it a like!

🔄 Share this valuable knowledge with your friends and colleagues, so they can also benefit from understanding the power of DevOps!

👉 Stay updated with my latest posts and never miss out on exciting content! Click that Follow button to join and stay in the loop!

Follow me on Linkedin --> abdallah-qamar 👔

Stay tuned for Day 13...👋

D

I love git switch -c branch-name often I forget to checkout a branch start building a feature then realise I'm on the wrong branch.

Using

git switch will move all your changes onto a new branch, if the branch doesn't exist it will create it. Very handy!

90 Days Of DevOps

Part 12 of 22

In this series, we will explore the core principles of DevOps following a 90 day roadmap.

Up next

Day 13 : Python For DevOps (Intro)

Is Python really important as a DevOps Engineer ?