Name Last Update
app Loading commit data...
lib Loading commit data...
logs Loading commit data...
scripts Loading commit data...
sessions Loading commit data...
src Loading commit data...
.gitignore Loading commit data... Loading commit data...
README.pgUTF8 Loading commit data... Loading commit data...
alembic.ini.example Loading commit data...
site.config.example Loading commit data...

Building a new project

Remove app/ directory and replace with application module using 'git submodule'

git submodule add prioritize

Remove html/ directory and replace with HTTP framework using 'git submodule'

git submodule add html

Remove public/ directory and replace with coded templates and assets using 'git submodule' public

If you want to use any of the existing directory structure, you will run into a problem after deleting:

$ rm -rf html/
$ git submodule add html
'html' already exists in the index

This can be resolved by removing the directory from cache:

$ git rm -r --cached html
rm 'html/'

Once you have resolved all the GIT nuances to get your project in a state ready for development, make sure you change the project origin to point to your new Git repository location:

git remote add origin

Finally, you can push the project, complete with submodule references

$ git commit
[project_import 70bb83e] Imported project code;
 8 files changed, 12 insertions(+), 12 deletions(-)
 create mode 100644 .gitmodules
 delete mode 100644 app/
 create mode 160000 html
 delete mode 100644 html/
 create mode 160000 prioritize
 create mode 160000 public
 delete mode 100644 public/assets/
 delete mode 100644 public/templates/
$ git push -u origin project_import;
Enter passphrase for key '/home/harry/.ssh/id_rsa': 
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 606 bytes | 303.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
 * [new branch]      project_import -> project_import
Branch 'project_import' set up to track remote branch 'project_import' from 'origin'.
$ git checkout -b project_import
A   .gitmodules
D   app/
A   html
D   html/
A   prioritize
A   public
D   public/assets/
D   public/templates/
Switched to a new branch 'project_import'

Cloning a Project

When you clone this project, none of the submodules will be cloned.

git submodule init
git submodule update