# Working with vendor branches

**URL:** <https://discourse.chef.io/t/working-with-vendor-branches/1743>\
**Category:** Chef Infra (archive)\
**Created:** [March 3, 2011, 9:15pm UTC](https://discourse.chef.io/t/working-with-vendor-branches/1743 "2011-03-03T21:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Merritt](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/brian_merritt/32/837_2.png) [@Brian\_Merritt](https://discourse.chef.io/u/Brian_Merritt)\
**Post date:** [March 3, 2011, 9:15pm UTC](https://discourse.chef.io/t/working-with-vendor-branches/1743/1 "2011-03-03T21:15:06Z")

</div>

Hi folks.

I’m wondering if there are any docs on working with Chef and vendor branches besides this thread and gist?

thread:

[http://lists.opscode.com/sympa/arc/chef/2010-04/msg00083.html](http://lists.opscode.com/sympa/arc/chef/2010-04/msg00083.html)

gist:

> <https://gist.github.com/adamhjk/365452>

I’ve tried to follow Adam’s example but I’m not seeing local changes merge properly when I run eg 'knife cookbook site vendor ’ after making changes. I assume this is due to some error on my part, but thus far I haven’t figured it out.

Thanks,

Brian

---

<div class="post-metadata">

**Author:** ![Brian\_Akins](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/brian_akins/32/298_2.png) [@Brian\_Akins](https://discourse.chef.io/u/Brian_Akins)\
**Post date:** [March 4, 2011, 1:40pm UTC](https://discourse.chef.io/t/working-with-vendor-branches/1743/2 "2011-03-04T13:40:23Z")

</div>

On Mar 3, 2011, at 4:15 PM, Brian Merritt wrote:

> I've tried to follow Adam's example but I'm not seeing local changes merge properly when I run eg 'knife cookbook site vendor ' after making changes. I assume this is due to some error on my part, but thus far I haven't figured it out.

Make sure you are pushing/pulling all branches/tags in git. If not, you can clobber your local changes. I'm no git expert, but that works for us and we used to have the same issue.

--Brian

---

<div class="post-metadata">

**Author:** ![Brian\_Merritt](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/brian_merritt/32/837_2.png) [@Brian\_Merritt](https://discourse.chef.io/u/Brian_Merritt)\
**Post date:** [March 15, 2011, 2:34am UTC](https://discourse.chef.io/t/working-with-vendor-branches/1743/3 "2011-03-15T02:34:40Z")

</div>

Just to close the loop here, my issue was a local one caused by having one of my git branches in an unhappy state. Once I resolved the issue, using vendor branches has been a breeze.

Brian

On Mar 4, 2011, at 5:40 AM, Brian Akins wrote:

> On Mar 3, 2011, at 4:15 PM, Brian Merritt wrote:
> 
> > I've tried to follow Adam's example but I'm not seeing local changes merge properly when I run eg 'knife cookbook site vendor ' after making changes. I assume this is due to some error on my part, but thus far I haven't figured it out.
> 
> Make sure you are pushing/pulling all branches/tags in git. If not, you can clobber your local changes. I'm no git expert, but that works for us and we used to have the same issue.
> 
> --Brian
