git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Unrelated Histories
@ 2018-08-29 16:49 Tomas Zubiri
  2018-08-29 18:15 ` Stefan Beller
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Zubiri @ 2018-08-29 16:49 UTC (permalink / raw)
  To: git

Hello all,

I have recently joined a team there seems to be a couple of  issue
with the git repositories:


1- A branch created from development cannot be merged into the
production branch.



(production)

git merge development_feature_branch



fatal: refusing to merge unrelated histories




2- If there is a file that only has a 1 line difference in production,
a git diff will return that the whole file is different:

git diff production:folder development:folder


“
diff --git a/folder/file.py b/folder/file.py

index 9bfd6612..20cce520 100644

--- a/folder/file py

+++ b/folder/file.py

@@ -1,245 +1,245 @@

“

I’m not 100% sure what happened here. But it seems that changes and
added files are copied and pasted into the production branch and
uploaded indepenedently as separate files, contributing to a huge
difference between branches.

How can I confirm this hypothesis, and what steps can I take to solve it?

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-29 20:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29 16:49 Git Unrelated Histories Tomas Zubiri
2018-08-29 18:15 ` Stefan Beller
     [not found]   ` <CAE3VKErGMSgB9gJAEnAuEDE51Yem6WUsg6fmOQELY1HCrALk_Q@mail.gmail.com>
2018-08-29 20:13     ` Stefan Beller
2018-08-29 20:18     ` Fwd: " Tomas Zubiri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).