简体   繁体   中英

bitbucket git commits missing

We have migrated from svn to git lately. And I am not good with git till now. My problem is that, I have committed some files and it cause to lose the file changes others did. But the changes are there in my instance but not in any others(they lost what they committed). The graph shows the details. The top two commits I have marked caused the issue. Please help me to resolve the issue. I am not using commands for git, but tortoise git UI.

在此处输入图片说明

I do not have a complete solution to your problem, but here's out of personal experiences with BitBucket. (Note: I use git client and commands for communicating with Bit Bucket)

At times when I see such an issue, the prime reason behind such a failure is either failure of 'git push' (which finally pushes your latest staged changes to the active branch), or selection of an incorrect branch while committing the code.

Ideally, in my case, I would fire a fresh (dummy) commit operation, and things work just fine for me. I agree that this is not a direct solution to your problem, but may be of help!

Don't use git force push unless definitely required When you make your branch upto date by pull or merge ensure you accept the changed set - are you sure you are removing commit or are you promoting the older commit ? Mostly the later

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