Re: Exclude a file from a pull request

From: Rudy YAYON <hidden>
Date: 2016-06-15 23:06:47

On Wed, Oct 7, 2015 at 9:33 AM, Andreas Schwab [off-list ref] wrote:
Rudy YAYON [off-list ref] writes:
quoted
  My concern is that one important file (Puppetfile) needs to be pushed to my remote repository so I can check the changes I commited.
quoted
  To do that, I need to commit changes (included to the Puppetfile) then I need to push it to the remote repository.
quoted
quoted
  Once I want to merge these changes from a specific branch to the master branch, I do NOT want to include this file. In other words, I want to merge all files except the Puppetfile file.
quoted
quoted
  What is the best way for you to do that?
Create a branch that does not include the file.
Andreas.
 

Why do the changes to "Puppetfile" need to be pushed to your github?

Just test it locally and then push it and pull-request a commit which doesn't have those changes in it.

 

Regards,

Jake


Hi Jake,


  Actually, once I run r10k, it will grab the Puppetfile from each branch from the remote repository to create Puppet environments (per git branch) and deploy other remote repositories.

  This file is mandatory on the repository.


Regards,
Rudy YAYON 		 	   		  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help