Github file changed issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Github file changed issue

I checkout from staging branch to a new branch and I only worked on a single file on that new branch ,I ran git status to check for a modified files and I have just one file modified and I staged it and I commit it and push it to the remote repo,when I created a PR I found out that the file changed has more than a file, and I touched just a file .

10th Jun 2022, 5:57 PM
Decodeworms Olamilekan
Decodeworms Olamilekan - avatar
5 Answers
+ 1
Try looking for an answer in the Github community. https://github.community/
10th Jun 2022, 6:11 PM
Chris Coder
Chris Coder - avatar
+ 1
Check if the PR has the correct source and destiny branches. Otherwise, include a link to the PR in the question description (not in an answer, which can get buried among all others).
11th Jun 2022, 12:43 AM
Emerson Prado
Emerson Prado - avatar
0
Emerson Prado What did you mean by PR has the correct source and destiny branches? I can not share a link because it is a company property.
28th Jun 2022, 6:32 AM
Decodeworms Olamilekan
Decodeworms Olamilekan - avatar
0
Decodeworms Olamilekan Double check if the source branch in the PR is the same you pushed, and the destiny is the branch you created yours from. The problem you described can happen if you checkout from a parent branch, but pull to a different one, with less commits than the one you checked out from. Otherwise, try to see if the source and destiny branches have any unexpected change. Like someone else force pushed to the destiny branch and caused this difference. Or if someone else pushed to your branch. OK, being a private repo, no way to show the state. But this is what I can think of now. Let's check, and bring back here your findings.
28th Jun 2022, 9:36 AM
Emerson Prado
Emerson Prado - avatar
0
Emerson Prado Ok thanks
28th Jun 2022, 9:50 AM
Decodeworms Olamilekan
Decodeworms Olamilekan - avatar