How do i push my microservice folders to Github as one repository

228 Views Asked by At

I have a micro-service app built in Laravel 9. It is built as two micro-services: frontend and backend.

Each micro-service has sub-folders and file because each is a Laravel installation. My repository structure

I want to commit the whole as one repository to GitHub using my Git GUI but my windows shows no files and i keep getting :

No changes to commit You must stage at least 1 file before you can commit.

My Git GUI

1

There are 1 best solutions below

1
Matt On

Prior to committing, you must add files.

Some commands for git flow:

git init creates new repository

git add <filename> stages a file

git add * or git add --all stages all files on the repository

git commit -m "message" commits staged files

git push <remote> <branch> Pushes branch to a remote repository e.g. on github

Some basic documentation: https://rogerdudler.github.io/git-guide/