apt-get update apt-get upgrade apt-get install git
# 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