Skip to main content

Using Git

A collection of 18 posts

git fetch vs pull
Using Git

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

git amend commit
Using Git

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
Using Git

Check Git Commit History

Learn to quickly check the commit history in git.

· Sagar Sharma

Git show files in a commit
Using Git

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
Using Git

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
Using Git

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

git push empty commit
Using Git

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

dot git folder
Using Git

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

git clean
Using Git

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
Using Git

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

Switch branches in Git
Using Git

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

Unstage files in Git
Using Git

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
Using Git

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 new branch in Git
Using Git

Create a New Branch in Git

In the Git Beginner's tutorial, learn how to create a new branch.

· Abhishek Prakash

Delete remote git branch
Using Git

How to Delete Remote Git Branch

In this article of Git beginner tutorial series, learn about deleting a remote Git branch.

· Abhishek Prakash

Delete local branch in Git
Using Git

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

Undo commit in Git
Using Git

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

Git switch vs Git checkout command
Using Git

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