by Alex Shapovalov | Aug 29, 2021 | Git
You can compare branches in git using git diff first-branch..second-branch but this will give you all changes between branches, but sometimes you need to know only files which were changed. You can do it using the following git command, it will give you a list of...
by Alex Shapovalov | Aug 28, 2021 | Git
When doing merge in Git, it automatically commits merge results if no conflicts exist. That behaviour can be changed when –no-commit parameter provided. How to merge in Git without commit git merge branch-name –no-commit –no-ff Alex ShapovalovAlex...
by Alex Shapovalov | Aug 20, 2021 | Git
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...
by Alex Shapovalov | Aug 20, 2021 | 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...
by Alex Shapovalov | Aug 20, 2021 | 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...
by Alex Shapovalov | Aug 20, 2021 | 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...