2

Given a file and a specific line, for example myFile.php line 123,
will be possible to get information about which pull request or branch or issue
the line of code has been added?

Lorraine Bernard
  • 13,000
  • 23
  • 82
  • 134

1 Answers1

1

You need git blame. Read this

If you want to do it through UI, then using git gui you can browse the files.

Now to answer your question : You will find a SHA1 Commit ID in which each line was modified. You can map it to some branch by searching for it. Read this

Community
  • 1
  • 1
AYK
  • 3,312
  • 1
  • 17
  • 30
  • +1, thanks for your answer. Actually `git branch --contains` display just the branch which contains the modification. Actually I would like to access the first branch or the name of the pull request where this change has been made. Any hints? – Lorraine Bernard Nov 08 '12 at 14:02