I am trying to push all my new files to a Github repo. However, it puts all the changed files in a new directory.
Example:
$ cd foobar
$ git add foo.txt
$ git add bar.txt
$ git add bax.txt
$ git commit -m "change some files"
$ git push origin master
Then I go to my Github repo, say, foobarbaz
. Instead of all my changes going into the repo, a new folder is made called foobar
. This folder contains all the files I added to the commit. Why is this?
Edit: "foobar" is the root dir of the repo (I know that it is too late to make this edit, but I thought new visitors should know)