Mastering Git Commands: Part 1

Git is a powerful version control system that every developer should have in their toolkit. Whether you are working on a solo project or collaborating with a team, Git helps you track changes, manage versions, and collaborate seamlessly. In this guide, we’ll explore some essential Git commands that will help you become a Git pro. Git Download What is Git? Git is a distributed version control system that was created by Linus Torvalds in 2005....

September 25, 2023 · 3 min · 587 words · Haziq Rohaizan

Mastering Git Commands: Part 2

In the first part of our Git commands guide, we covered the basics of Git, from initializing a repository to pushing and pulling changes from remotes. Now, let’s dive into some more advanced Git commands and concepts that will help you take your version control skills to the next level. Git Branching Strategies Branching is a fundamental concept in Git, and understanding branching strategies can greatly improve your workflow, especially when collaborating with others....

September 25, 2023 · 3 min · 491 words · Haziq Rohaizan

Mastering Git Commands: Part 3

Welcome back to our series on advanced Git commands. In this installment, we’ll explore even more powerful Git commands and techniques that can enhance your version control skills and streamline your development workflow. Git Submodules Git submodules allow you to include other Git repositories within your own repository as subdirectories. This is particularly useful when you want to incorporate external libraries or dependencies into your project. Here’s how to add a submodule to your repository:...

September 25, 2023 · 3 min · 434 words · Haziq Rohaizan

Mastering Git Commands: Part 4

Welcome to the fourth and final installment of our series on advanced Git commands. In this part, we’ll explore additional Git commands and techniques that can further enhance your Git proficiency and help you become a Git master. Git Revert While git reset can be used to undo commits, it can be a risky operation, especially in shared repositories. git revert is a safer alternative that creates a new commit to undo the changes introduced by a previous commit....

September 29, 2023 · 2 min · 404 words · Haziq Rohaizan

Mastering Git Commands: Part 5

Welcome to the fifth and final installment of our series on advanced Git commands. In this part, we’ll dive even deeper into Git’s capabilities, exploring some lesser-known but highly useful commands and techniques. Git Bisect Automated While we previously covered the git bisect command for manually finding the commit that introduced a bug, Git also provides an automated way to perform a bisect. You can define a script or command that returns whether a specific commit is good or bad, and Git will automatically search for the commit that introduced the issue....

September 30, 2023 · 3 min · 445 words · Haziq Rohaizan

Mastering Git Commands: Part 6

In this continuation of our series on advanced Git commands, we’ll explore some additional techniques and commands that can further enhance your Git proficiency. Git Stash Pop In addition to git stash apply, you can use git stash pop to apply the most recent stash and remove it from the stash list in a single step. This can help you streamline your workflow when temporarily saving changes. Apply and remove the most recent stash:...

September 30, 2023 · 2 min · 370 words · Haziq Rohaizan