Select Page
How to find a list of files that are different between two branches in Git

How to delete Git branch both locally and remotely

Delete Git branch locally can be done by providing -d parameter to git branch command. In some cases, git can complain that a branch is not fully merged, and it will refuse to delete it, in that case, you can use -D parameter (capital D), it will force Git to remove...
How to find a list of files that are different between two branches in Git

View changes before committing in Git

Usually before committing changes in Git developer verifies one last time all changes he did. Normally we use git difftool command in order to do it. In that case, git will ask you a question if you want to see changes before opening each file. When the number of...
How to find a list of files that are different between two branches in Git

How to change the last commit message in Git

Sometimes you did make a commit, but forget to add the ticket number into the commit message, or realized that the commit message is incorrect or contains some spelling mistakes. In git, you can easily change the last commit message without changing any files, just...
How to find a list of files that are different between two branches in Git

How to undo the last commit in Git

There are a number of ways to undo changes you commit into a git repository, it depends on what exactly you want to change or undo and how. For example, the most common task is to change comment text for your commit, in this case, you can follow instructions from How...