I have a directory,spring-boot-test, that I need to upload to github. The directory has child directories and files within them.
drwxrwxr-x. 23 jenkinsadmin jenkinsadmin 4096 Sep 19 02:33 spring-boot-test
When I push the directory, it shows it as a file in github or it shows there are no child directories under it.
git add .
git push origin master
Another try per comment:
[jenkinsadmin@localhost test]$ git add --all
[jenkinsadmin@localhost test]$ git commit -m "test"
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
modified: spring-boot-test (modified content)
no changes added to commit
[jenkinsadmin@localhost test]$ git push
Everything up-to-date
and I get Everything up-to-date, but if I check in github, it has folder symbol but contains nothing.
I do not want to drag and drop using GUI. I am using git command on Linux.