Every time I checkout a new branch, then switch back to the branch I was working on, I run into a long list of missing module errors in my JS console. The missing modules are all bower components. If I delete my bower_components folder, then do a fresh bower install, everything works again. Why do I have to do this every time I checkout the branch? Thanks.
Need to delete all bower components and do fresh bower install on every checkout
218 Views Asked by Daniel Bogart At
1
There are 1 best solutions below
Related Questions in ANGULARJS
- Angular Show All When No Filter Is Supplied
- Using pagination on a table in AngularJS
- State with different subviews
- Getting and passing MVC Model data to AngularJS controller
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- AngularJS, Google App Engine and URLrewrite
- send data from table to another page into forms
- How to write tests for classes with inheritance
- angularJS sending OPTIONS instead of POST
- Receiving POST from external application in AngularJS
- Metaprogramming AngularJS Filters
- Reload List after Closing Modal
- Why is my angularjs site not completely crawlable?
- Why is separation of JavaScript and HTML a good practice?
Related Questions in GIT
- Push mysql database script to server using git
- Git show's file path
- Git > diffs filtered, show only certain changed classes/files
- Pushing to git repository hosted by Visual studio online without entering user name and password
- How do I create my own Git branch to work on?
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- Sub-directory into independent repository and later merge back into main repository
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- eclipse errors when try to change to master git branch
- How to have Heroku build my development branch on a staging server?
- Is "Merged in" a commit message created by bitbucket, or git?
- Git: Multiple projects under one directory
- Permission denied hg-git
- Is it possible to clone a private git repo without adding ssh keys
- Track file in master repository which is ignored in submodule
Related Questions in BOWER
- Strange npm behavior when installing packages like grunt
- Intellisense on Visual Studio 2015 RC for bower.json file is not working properly.
- Does an existing gruntfile need to be edited? What is the common workflow?
- Using Bower with Express
- Cannot link to files from bower in meteor
- Copying node_modules or bower_components to static/public directory in web app
- Grunt-serve removes bootstrap-sass-official javascript files after update to 3.3.4
- how to manage file dependencies in a website
- Difference between bower, browserify, requirejs, webpack?
- How to explicitly include Foundation 5 child scripts in Bower/Grunt?
- So I have angular from bower, now what?
- Ember install:bower vs Bower install
- Load libraries with wiredep
- Polymer with Bower causes build to fail in Cordova
- Adding the uri.js bower component breaks my Grunfile.js, which dies thinking the uri.js directory is a file. How to fix?
Related Questions in GIT-CHECKOUT
- How to pull and push sub directory in Git
- What is the reason that in git we can refer to HEAD by --?
- error: pathspec 'test-branch' did not match any file(s) known to git
- How to git commit in a new branch after I've already made the changes?
- Restore a deleted folder in a Git repo
- Is `pull` needed after checking out a new branch?
- git: fatal: Cannot switch branch to a non-commit '12382'
- Git Remove One Step in a File's History
- How to prevent `git checkout` from checking out specific file types?
- Git checkout to external work tree and remove deleted files
- Can't unmodify files in git
- GIT - Checking out sometimes incorrectly deletes file in the working area
- Keeping some local changes when checking out with --force
- git - How to checkout all changed files between two commits
- How do I download a specific git repository tag?
Related Questions in BOWER-INSTALL
- Bower: Install package that doesn't have bower.json file
- How to do a minimal install using Bower
- How does jQuery install with Bower?
- Revert to state before installing a bower component
- Bower Install With Front End Template
- How to install bower components to multiple paths with bower-installer?
- Use a custom file other than `bower.json` to install dependencies
- `bower install` failing always, open network
- Is there a way to use polymer's elements without the use of node. Js npm and bower?
- eclipse-neon bower-install can't run due to error in the file
- Grunt - Change bower components directory?
- Install components via Bower without SSL in ASP.NET 5 Starter Web project
- Bower is installed and in path, but not recognized
- How can I use Bower as a package manager with Visual Studio 2013? I.e. I have a .NET project and want to add some packages uses Bower
- bower install package with custom directory structure
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use Git hooks to accomplish this. Check out digital ocean's article on them for a list.
Specifically, I think
post-mergeandpost-checkoutare the ones you are interested in.Git hooks are just simple shell scripts. Place the following into
.git/hooks/post-mergeand.git/hooks/post-checkout:Then make sure that the files are executable by running the following: