I have been trying to learn to use github, it has been fine until I used the git gui. It seems to have done something to something I don't yet understand, when trying to commit I get
Your branch is ahead of main/master by 1 commit [..]
It then proceeds to list the entire contents of my apache directory under 'untracked files'. Main was a branch I created because I had made a mistake and didn't know how to remove things. I have tried all of the solutions I could find on google, but none worked. This problem is incredibly frustrating, but probably due to my own ignorance. If someone could point me in the direction of a github tutorial that would explain the concepts I am missing to me, I would be grateful. A quick solution would also be fine. Many thanks in advance. I apologise if this is a question that has been asked times before.
EDIT: git status:
# On branch master
# Your branch is ahead of 'main/master' by 1 commit.
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: htdocs/main.html
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# bin/
# cgi-bin/mappings.txt
# conf/
# error/
# file
# htdocs/index.html
# icons/
# include/
# lib/
# logs/
# manual/
# modules/
# test/ no changes added to commit (use "git add" and/or "git commit -a")