Skip to content

Instantly share code, notes, and snippets.

@masitings
Last active October 11, 2019 06:41
Show Gist options
  • Save masitings/045282ea39ab8e181a973858ec800313 to your computer and use it in GitHub Desktop.
Save masitings/045282ea39ab8e181a973858ec800313 to your computer and use it in GitHub Desktop.
Git initialiation for submodules
Git Submodules
==============
STRUCTURE
-- Main Branch
- App (Second Branch)
- Frontend (Third Branch)
===============
1. Clone the repository and checkout to the Main Btanch.
2. at the main branch, use command line and type this command to initialize the submodule:
`git submodule update --init --recursive`
3. Go to the App & Frontend folder and checkout it to the representative branch. (App belongs to Second Branch / App = wordpress ).
===============
- You need to check the status of each submodule folder using
`git status`
- If you see any "HEAD" text in the status, you need to run the number 3 process and at this point make sure you didn't have create any changes first. If this happened, please merge it to the representative branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment