I am trying to make changes to a git repository, but I keep running into the same error, and none of the dozens of guides I can find seem to be helping, so I'll explain what I'm doing step by step and hopefully someone can help point out where I'm going wrong (And before anyone points me to it, I've already read Git won't add any files - just an empty directory )
- Create a new folder in my files
clone github repository to folder with
$ git clone [url.git]
copy Project folder with multiple files in it and paste it in desired location inside cloned git folder
add and commit at the new folder level and every level above it with multiple add commands
$ git add . $ git add * -f $ git commit -m "comment"
Push to online repository
$ git push origin master
However, once I do all this, I go to the web interface and see that the folder that I added is there, but it's entirely empty. It has none of the files that were contained inside. Despite this, git keeps telling me that everything is up to date and there are no changes.
$ git status
returns this value:
On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean