Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing multiple folders to Git

Tags:

git

github

I am quite new to github. I worked on a project which has multiple folders. Now when I try to push the local repo to github, only the files in the root are getting pushed (Not the files inside folders).

I am following these commands

git add .
git commit -m "message"
git push -u origin master

Can someone point out the actual commands

EDIT: Sample Folder Structure

root
/Folder1/File1.txt
/Folder1/File2.txt
/Folder1/File3.txt
/Folder1/SubFolder1/File.txt
/Folder2/File1.txt
/Folder2/File2.txt
/Folder2/File3.txt
/Folder3/SubFolder1/File.txt
/README
/index.php
like image 511
Ankit Avatar asked Jan 06 '12 05:01

Ankit


1 Answers

Try using git add -A. This should add everything including those files that are untracked.

like image 126
Kevin Jalbert Avatar answered Sep 22 '22 03:09

Kevin Jalbert