Git Commands

These are the Git commands that I used a lot in my job. Stash all the files including untracked new files. git stash save -u "stash_name" Undo merge or rebase. git merge --abort git rebase --abort Remove all the files which are not in git (untracked new files). git clean -xfd Discard all the local changes. git checkout -f Reset to previous steps like undo the commit.

Read More