Answer the question
In order to leave comments, you need to log in
How to sync a folder in git?
Hello. Please help me solve the following problem. I cloned one of the github reps into my local repository. Deleted the .git folder in it. Now I commit and push my repository from the machine to GitHub. However, the folder, which is what I cloned, does not commit. git add folder path -A - doesn't help. Where can I see in git what it is ignoring for a commit?
UPD
The situation is this. My repository is /home/myRepo . I clone someone's /home/myRepo/folder/someRepoFromWeb repository into it . Delete /home/myRepo/folder/someRepoFromWeb/.git . I get that in my home/myRepo there is only a folder/home/myRepo/folder/someRepoFromWeb . I didn't break my repository. I did not touch /home/myRepo/.git .
Answer the question
In order to leave comments, you need to log in
Where can I see in git what it is ignoring for a commit?
Initialize the project, on the command line
$ git init
$ git add *.c
$ git add README
$ git commit -m 'initial project version'
git status - displays the status of the files
do git add /home/myRepo/folder/someRepoFromWeb/. should help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question