update git bash from command line code example
Example 1: how to update git
git update-git-for-windows
Example 2: git update using git bash
# Since Git 2.16.1(2) you can use
C:\> git update-git-for-windows
#In version between 2.14.2 and 2.16.1, the command was
C:\> git update