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 .
5 Antworten
+ 1
Try looking for an answer in the Github community.
https://github.community/
+ 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).
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.
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.
0
Emerson Prado Ok thanks