P
P
parkito2016-08-09 00:08:05
git
parkito, 2016-08-09 00:08:05

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

4 answer(s)
A
aol-nnov, 2016-08-09
@aol-nnov

Where can I see in git what it is ignoring for a commit?

in the .gitignore file, which is located at the root of your rep (but it can be supplemented or vice versa by similar files at any nesting level in the repository. that is, you cloned from github, in that directory, most likely, your .gitignore) by the
way, it’s better to master submodules or subtree and don't do that kind of acrobatics.

M
Maxim Moseychuk, 2016-08-09
@fshp

Shouldn't have deleted the .git folder.

S
sergey, 2016-08-09
@zorro76

Initialize the project, on the command line

$ git init

Well, then according to the scheme:
$ git add *.c
$ git add README
$ git commit -m 'initial project version'

L
littleguga, 2016-08-09
@littleguga

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 question

Ask a Question

731 491 924 answers to any question