Re: [git-users] Re: how to add a new commit to the head of a branch, so that the branches have identical content?

2014-05-21 Thread Bob Hiestand
It seems strange to use git (or other VCS) to store build products. To your question, the simplest approach would be something like this: git checkout dst rm -rf * git checkout src . run build process git commit You can get a little more fancy if you want to reference the src branch as a

[git-users] Re: how to add a new commit to the head of a branch, so that the branches have identical content?

2014-05-21 Thread wbosse
Am Mittwoch, 21. Mai 2014 02:21:42 UTC+2 schrieb Sam Roberts: I suspect there is an easy way to do this, because every git commit is an object that references a tree object that contains a complete source tree. I just want to take the tree that is at the head of branch SRC, and make a

Re: [git-users] Re: how to add a new commit to the head of a branch, so that the branches have identical content?

2014-05-21 Thread Sam Roberts
On Wed, May 21, 2014 at 9:08 AM, Bob Hiestand bob.hiest...@gmail.com wrote: It seems strange to use git (or other VCS) to store build products. Seems so, but Heroku, openshift, etc., all accept or require runnable apps to be git pushed. I don't want build products in the dev src tree, of course,

Re: [git-users] Re: how to add a new commit to the head of a branch, so that the branches have identical content?

2014-05-21 Thread Sam Roberts
On Wed, May 21, 2014 at 9:08 AM, wbo...@metzler.com wrote: Perhaps the following command sequence works for you This looks like a good start, too, thanks everybody. Sam -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe