My daily `Git` command list.

When you are working in cross functional team or doing development all alone one thing that is common among all this is version control of your source code. Here I come with few basic git commands to fasten your work and make your daily life bit relaxed .

1. Fixup your commit to single commit message when you have long commit log .

Start interactive rebase from terminal:

Keep the first line as is and replace every pick with f (for fixup) for all other commit.

Note. After fixup, you need use push -finstead of push.


Temporarily store modified, tracked files in order to change branches git stash Save modified and staged changes git stash list list stack-order of stashed file changes git stash pop write working from top of stash stack git stash drop discard the changes from top of stash stack



5.Override local branch with remote.

If you figure out local changes are not required anymore or local commits are corrupt basically you can override all your local changes with remote.




Identity and access management

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Caching- Is it necessary for an Application?

Utkarsh Shukla


GitFlow Workflow — A High Level Overview

Digital Analytics Review — Week 4

For “Feodor2,” XP’s Unsung Hero… (*Updated*)

Kaprekar Number in Python

CS373 Fall 2020 Final Entry: Jesse Huang

Build a server for sending web push notifications

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
abhishek kureriya

abhishek kureriya

Identity and access management

More from Medium

Writing Meaningful Code Comments

How to read/write physical memory in linux through /dev/mem.

Secure Synology NAS with a custom domain, dynamic DNS and a free certificate

InProc and OutProc Session