know witch branch attributed to ta 1

know witch branch attributed to ta

git branch --contains tags/

Here is what the above code is Doing:
1. Get the list of all tags
2. For each tag, get the list of branches that contain that tag
3. For each branch, get the list of commits that are in that branch but not in the tag
4. For each commit, get the list of files that were changed in that commit
5. For each file, get the list of lines that were changed in that file
6. For each line, print the line number and the line

Similar Posts