Home > front end >  How to echo paths which are being merged in GitLab
How to echo paths which are being merged in GitLab

Time:12-19

I'm trying to merge a list of files from one branch to another.

I need the GitLab variable name which reflects the path being merged.

Does GitLab provide any predefined GitLab variable for this purpose? If not, what is the best way to echo the path being merged?

what exactly I am trying to achieve :

I'm trying to automate the merge process and for that , need to print the full path of the file which is being merged in the console output. something like "verbose" in command.

CodePudding user response:

If you have a branch feature, and want to see what files will be merged in master if you were to merge feature into master, you can use :

git diff --name-only master...feature  # 3 dots
  • Related