---
title: "git 知识点"
author: "feikiss"
date: "2015-10-23T14:28:05Z"
tags: []
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2015-10-23T14:37:24Z"
id: 2251335
url: "https://feikiss.iteye.com/blog/2251335"
---

1. 使用git server 最新版覆盖本地的修改：

git fetch --all
git reset --hard origin/master

OR If you are on some other branch
git reset --hard origin/your_branch

http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull