2

I have just created new repository on github and trying to add my project on git.

When my friend tried to clone using git clone this project, some files of my project were not cloned.

On inspecting more on this, I found that these files were not added from my side to git. Steps followed by me to add whole project to git:

git add -A
git commit -am "First Commit"
git push origin master

But, still some files were not added to git. I tried by changing permissions of these files from read-only to rwx and adding again. But, nothing changed.

Kesha
  • 497
  • 6
  • 19

1 Answers1

2

My project was having .gitignore file containing list of files and folders that were ignored during git add. So, I again added my project using

git add -f -A
git commit -am "Add Project"
git push origin master

Where

-f : adding files forcefully, ignoring .gitignore

-A : adding whole project

I have not removed anything from .gitignore because I want them to be added only once, not all the time when adding project to git.

Kesha
  • 497
  • 6
  • 19