I found this link in one of StackOverflow answers–very useful in understanding how git works.
What’s the use of git submodules? It’s mostly useful when you want to work on the code in both the main repo and the sub repo at the same time. Otherwise, a normal dependency management system would suffice.
To have submodules safely set up so that you run into walls less often, do the following:Continue reading
- Then sync files onto server and deploy (e.g., running
yarn run buildor any other scripts)
I’m on DigitalOcean’s server, but this works on any self hosted servers.Continue reading
$ git stash -u
To save the uncommitted changes:
# Either without a name $ git stash # Or with a stash name: $ git stash save funny-stash