How to Commit using Git Bash
To create a commit the first step is to connect your project with GitHub.

To connect your project first you need to copy the GitHub url.
Open git bash and navigate to the project you want to connect.
Once in the project you will want to type : git init to initialize a git repository.

After the git repository is initialized you will create a remote server using the url you copied to allow your project to communicate with GitHub.
Do this with the command : git remote add origin “url”

type : git remote -v to confirm the connection

Once connected type : git pull origin main

This will pull data from the origin to the main branch you are working on.
To add your changes type : git add .

now type : git commit -m “message” to commit your changes

Now you have to push your commit by typing git push origin master

Now you should have successfully committed to GitHub