Few Not So Common but Useful git commands

Git is a versatile tool. It has a lot of things that can make it productive to use. Here’s a list of a few commands that I use in git on a monthly basis for my git repositories.

git fsck -> Files system check

git gc -> Garbage collection

git diff –stat -> Only stats

git bundle create -> Export an entire branch, complete with history, to the specified file.

git clean –fdx -> Clears the working directory

git archive –format=zip –output=filename.zip -> Export a single snapshot to a ZIP archive called.

Do you have any other not-so-common git command that you use regularly?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s