Force Git to Overwrite files

Force Git to Overwrite files Public

Daniel Santos Neto

11 months
2,155 Views
Want to watch this again later?
Sign in to add this video to a playlist. Login
Share 0 0

Share Video:

Category:
Description:
Some users some times change a file, and can not do a git pull command, usually they get this error:

... Please, commit your changes or stash them before you can merge. Aborting
the solution is to force to overwrite your files, you can do this command.

git fetch --all && git reset --hard origin/master

Comments:

Comment
Up Next Autoplay