简体   繁体   中英

Our git remote repository is not synchronized with local repository

we have a problem with pushing our local stuff to a remote bitbucket repository. we are doing commit and push but the changes do not appear in our remote master branch.

Here is the problem in the Git History view of eclipse:

在此处输入图片说明

Could somebody please explain to me the difference between refs/remotes/origin/master and refs/heads/master ?

In my experience the eclipse git plugin ( in matter of fact most IDE git plugins) is not very reliable. So I would suggest you to try using git command line or some 3rd party solutions like TortoiseGit and try pushing again.

refs/remotes/origin/master contains the SHA-1 of the commit that your local repository believes is the latest on your branch master in your remote origin . It is updated when you communicate with the remote.

refs/heads/master contains the SHA-1 of your latest commit on your local branch master .

See Git references for more info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM