# Git Submodule Workflow **ATTENTION: Adding submodules at the wrong place of the project will actually f&%k up your git if you want to remove them again. So please take all those steps with care!!!** 1. Create a new repository on bitbucket 2. Clone it and create the main file: `my_component.js` ```javascript import React from 'react'; let MyComponent = React.createClass({ render() { return (
); } }); export default MyComponent; ``` 3. Open a shell and go to `cd onion/node_modules` 4. Commit and push to your newly created repository 5. Open `.gitignore` and add your future package folder to *NOT* to be ignored by git `!node_modules/