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
(It was later renamed to avoid confusion with updating the local repository, e.g. like svn update
does it.)
That command does not exist in Git 2.13 and before.
If this errors with “is not a git command” then either you don’t actually have Git for Windows, or your version is very old.
In which case, simply get the latest installer from https://git-scm.com/download (check whether you want 32- or 64-bit) and run it to upgrade.
If you already have the latest version it does nothing, in which case you can manually run the installer to reinstall.
C:\> git update-git-for-windows Git for Windows 2.17.0.windows.1 (64bit) Up to date
Related Posts:
- Ignoring directories in Git repositories on Windows
- Filename too long in Git for Windows
- How do I delete a Git branch locally and remotely?
- What does cherry-picking a commit with Git mean?
- How to use Git Revert
- How do I undo the most recent local commits in Git?
- Undo a Git merge that hasn’t been pushed yet
- How do I properly force a Git push?
- fatal: Not a git repository (or any of the parent directories): .git [duplicate]
- Why is “MINGW64” appearing on my Git bash?
- How to remove local (untracked) files from the current Git working tree
- How to modify existing, unpushed commit messages?
- Git pushing to remote branch
- How to revert a merge commit that’s already pushed to remote branch?
- Git pushing to remote branch
- How do I undo ‘git add’ before commit?
- GitHub Error Message – Permission denied (publickey)
- How can I see the differences between two branches?
- How do I push a new local branch to a remote Git repository and track it too?
- How do you push a tag to a remote repository using Git?
- ‘git’ is not recognized as an internal or external command
- Gitignore not working
- How do I revert a Git repository to a previous commit?
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- How to revert multiple git commits?
- How do I rename both a Git local and remote branch name?
- How do I fix a Git detached head?
- Why does git say “Pull is not possible because you have unmerged files”?
- How can I git stash a specific file?
- How to cherry-pick multiple commits
- Another git process seems to be running in this repository
- rejected master -> master (non-fast-forward)
- merge one local branch into another local branch
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Can I share my private GitHub repository by link?
- Is there a “theirs” version of “git merge -s ours”?
- Meaning of the GitHub message: push declined due to email privacy restrictions
- Is there a command to undo git init?
- How to rename a directory/folder on GitHub website?
- Create a git patch from the uncommitted changes in the current working directory
- git push says “everything up-to-date” even though I have local changes
- git clone: Authentication failed for
- How to create a .gitignore file
- How do I rename a repository on GitHub?
- Git Bash won’t run my python files?
- Hard reset of a single file
- Not a valid object name: ‘master’
- git: fatal: Could not read from remote repository
- Why does git say “Pull is not possible because you have unmerged files”?
- git add remote branch
- How to see the changes between two commits without commits in-between?
- Git: Installing Git in PATH with GitHub client for Windows
- How to delete a stash created with git stash create?
- In a Git repository, how to properly rename a directory?
- How to “git clone” including submodules?
- My new Github page isn’t showing up
- Why should I use core.autocrlf=true in Git?
- Unity Collaborate vs GitHub
- How can I add a blank directory to a Git repository?
- Git Extensions: Win32 error 487: Couldn’t reserve space for cygwin’s heap, Win32 error 0
- How to change the license for a project at Github?
- Is it possible to pull just one file in Git?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- Aborting commit due to empty commit message
- How to update a branch with master on GitHub
- How to keep a branch synchronized/updated with master?
- Can I arrange repositories into folders on Github?
- Completely cancel a rebase
- How to discard local changes and pull latest from GitHub repository
- Git: What’s the best practice to “git clone” into an existing folder?
- How to recover stashed uncommitted changes
- Git Pull is Not Possible, Unmerged Files
- Specify an SSH key for git push for a given domain
- Git merge reports “Already up-to-date” though there is a difference
- How do I “un-revert” a reverted Git commit?
- git-diff to ignore ^M
- git push not send changes to remote git repository
- How to merge a specific commit in Git
- Differences between Commit, Commit and Push, Commit and Sync
- How can I delete all Git branches which have been merged?
- git replace local version with remote version
- Where is git.exe located?
- How to find which git branch I am on when my disk is mounted on other server
- How to use Git and Dropbox together?
- How to modify a specified commit?
- How can I push a specific commit to a remote, and not previous commits?
- Git ignore local file changes
- Git: Where exactly is the “working directory”?
- What exactly does the “u” do? “git push -u origin master” vs “git push origin master”
- What’s a good (free) visual merge tool for Git? (on windows)
- Import existing source code to GitHub
- git checkout all the files
- Git Workflow for Large, Live Site?
- Add latest commit info on login footer using login_footer hook
- Git beginner: Keeping track of on-server changes
- Initial wordpress deploy via git
- Display GitLab repositories of the logged in user on a page
- How to use wordpress with Git?
- Is it possible to checkout a beta version of WordPress via github?
- How to retrieve the last modification date of all files in a Git repository