Computers and Electronics How do I upload an entire folder to github? How do I push a folder into a git repository? - $ cd /path/to/my/project. Add your project files to the repository : - $ git init. $ git add . $ git commit -m "Initial import" ... - $ git push -u origin master. After this initial import, pushing your changes will just require this command :