ITeye博客

git push and git pull the different of the path

夜鸣猪 · 2013-02-02 07:20 · Ruby On Rails · 编程语言 · Markdown

reset remote branch


git fetch origin
git reset --hard origin/master

#git fetch uses:

        refs/heads/<head>:refs/heads/<branch>
#git push uses:

        HEAD:refs/heads/<head>

remote config


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


评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。