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.
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.
CodePudding user response:
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/
CodePudding user response:
You can look at https://ndpsoftware.com/git-cheatsheet.html#loc=index; which is a very good interactive description of git.