Using Git
A collection of 18 posts

What is the Difference Between Git fetch and Git pull?
Git fetch and pull seem to do the same task but there is subtle difference between their functioning.
· Pratham Patel

Amend a Comment in Git
We all make mistakes. The important thing is to make amends. Git allows you that as well.
· Sagar Sharma

Check Git Commit History
Learn to quickly check the commit history in git.
· Sagar Sharma

Git Show Files in a Commit
Are you adding all the correct files? Check the files that are part of a commit in git with this trick.
· Sagar Sharma

Git Move Commit to Another Branch
Sometimes you commit to an incorrect branch and now you want to move the commit to the correct branch. Here's how to handle the situation.
· Sagar Sharma

Undo Git Add and Remove Files from Staging
Accidentally add a file that was not supposed to be added? If you have not made the commit yet, you can undo the git add and remove the file from staging.
· Sagar Sharma

Push an Empty Commit in Git
Yes, you can totally push an empty commit in Git if you really want to. Here's how to do that.
· Sagar Sharma

What is the .git folder?
See the .git folder in your project directory and wonder what it is about. Let me explain all about it.
· Sagar Sharma

Clean Your Git Repository With Git Clean
A neat git command to keep your git repository neat and clean.
· Pratham Patel

Git Hook Management with Pre-commit
Git provides a powerful tool for automation under the hood: hooks. In this tutorial, you will learn about the pre-commit framework that can bring order and structure to your script collection.
· LHB Community

Switching Branches in Git
Here are a few examples to show you how to list local and remote branches and switch between those branches.
· Pratham Patel

How to Unstage Files in Git
Accidentally added a file in the latest commit? Don't worry too much. Here is how you can unstage a file in Git.
· Pratham Patel

Setup Username and Email in Git
Git asking you "please tell me who you are"? You need to set up the git username and email. Here's how to do that.
· Abhishek Prakash

Create a New Branch in Git
In the Git Beginner's tutorial, learn how to create a new branch.
· Abhishek Prakash

How to Delete Remote Git Branch
In this article of Git beginner tutorial series, learn about deleting a remote Git branch.
· Abhishek Prakash

How to Delete Local Git Branch
In this chapter of the Git beginners tutorial series, learn about deleting and force deleting a local git branch.
· Abhishek Prakash

How to Undo a Commit in Git
Not feeling committed enough about your code change? Learn how to undo a commit in git.
· Abhishek Prakash

What's the Difference Between Git Switch and Checkout?
You can use both git checkout and git switch for switching between branches. But why do we have two commands for the same thing?
· Abhishek Prakash