---
title: "git push and git pull the different of the path"
author: "夜鸣猪"
date: "2013-02-02T07:20:44Z"
tags: []
categories: ["编程语言"]
slug: "git-push-and-git-pull-the-different-of-the-path"
draft: false
lastmod: "2013-08-06T19:58:47Z"
id: 1783582
url: "https://hlee.iteye.com/blog/1783582"
---

reset remote branch


```ruby

git fetch origin
git reset --hard origin/master

```





```ruby
#git fetch uses:

        refs/heads/<head>:refs/heads/<branch>
#git push uses:

        HEAD:refs/heads/<head>
```





remote config



```java

 [remote "<name>"]
                url = <url>
                pushurl = <pushurl>
                push = <refspec>
                fetch = <refspec>


```