Is there a way to make the keep the vendor folder unchanged after adding a new dep and switching to another branch?

Written by
Link to Post by 

I am working on two PRs simultaneously. The project uses dep and Gopkg.toml. The vendor folder is in the gitignore so If I check out from one of my branches (in which I had just added a dep) to another, I lose that dep from the vendor folder when I get back to my previous branch.

Is there any way to prevent this from happening?

submitted by /u/fenster25
[link] [comments]

Article Tags:
· ·
Article Categories:

Leave a Reply