Member-only story

Advanced Git Concepts You Should Know

Tapajyoti Bose
5 min readJan 2, 2022

Have you gotten accustomed to the basics of git, but the advanced concepts make you scratch your head?

This article got you covered, not only will it introduce you to the advanced git concepts, but also show you how to use them in a real-world scenario! Let's dive in.

Stash

Let’s first check the definition:

Git stash is a built-in command with the distributed version control tool in Git that locally stores all the most recent changes in a workspace and resets the state of the workspace to the prior commit state.

The stash can be thought of as a temporary storage for the changes you made, but did not commit.

The real-world use case for this feature would be when you are not done working on the changes, but need to pull the updates from the remote repository.

To use stash, you need to add the files to the staging area

git add .

and push it to the stash

git stash pushORgit stash push -m "<stash message>"

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Tapajyoti Bose
Tapajyoti Bose

Written by Tapajyoti Bose

Top Rated Freelancer || Blogger || Cross-Platform App Developer || Web Developer || Open Source Contributor || FIRE Enthusiast

Responses (6)

Write a response

I was gonna say that I think "steroids" are a bad analogy. But after I actually bothered to read up on them, I think the analogy is perfect.
Steroids just make you look tougher without making you tough. From my experience using TS for a couple of…

A steroid is a biologically active organic compound with four rings arranged in a specific molecular configuration. Steroids have two principal biological functions: as important components of cell membranes which alter membrane fluidity; and as signaling molecules.