Git Fast-Forward Merge首先需要拉取 [英] Git Fast-Forward Merge requires a pull first

查看:260
本文介绍了Git Fast-Forward Merge首先需要拉取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



本地回购也会更改我本地回购中的一些文件。

我有一个远程回购, p>

我想要做的是推送给原始主人,但它说我需要先做一个拉。

git不会推送本地更改,直到服务器更改已经与本地进行拉和合并为止。
,所以当你要推送本地的变化,然后git提示拉(合并)服务器的变化第一。



git拉
然后
git push

I have a remote repo which i have changed the last time i cloned it.

The local Repo also change some of the files in my local repo.

What i would like to do is push to origin master, but it says that i need to do a pull first.

解决方案

git does not push the local changes until the server changes has pull and merged with local. so when you going to push the local changes then git prompt to pull (merge) server changes first.

git pull then git push

这篇关于Git Fast-Forward Merge首先需要拉取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆