M
M
marrrr2018-05-12 11:09:32
git
marrrr, 2018-05-12 11:09:32

Are not files from the local repository added to the remote repository on the github, but the entire folder with the repository?

There is a local git repository called proj. A repository with the same name proj was later created on the github and the following commands were executed according to the instructions:
git remote add origin [email protected]:user/proj.git
git push -u origin master
As a result, instead of the normal folder structure in the remote repository: proj /project files....
It turned out like this: proj/proj/project files...
Also, when I tried to add an empty commit, the console displayed the following:
$ git commit -m "test"
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
../.VirtualBox/
../.WebStorm2018.1/
../.atom/
../.bash_history
../.config/
../.gitconfig
../.minttyrc
../.ssh/
../.v8flags.6.2.json
../.viminfo
../.vue-templates/
../3D Objects/
../AppData/
../Contacts/
../Creative Cloud Files/
../Desktop/
../Documents/
../Downloads/
../Favorites/
../IntelGraphicsProfiles/
../Links/
../ MicrosoftEdgeBackups/
../Music/
../NTUSER.DAT
../OneDrive/
../Pictures/
../Saved Games/
../Searches/
../Videos/
../VirtualBox VMs/
../WebstormProjects/
../grid/
../ntuser.dat.LOG1
../ntuser.dat.LOG2
../ntuser.ini
.. /package-lock.json
nothing added to commit but untracked files present
________________________________________________________
That is, all files from the parent directory of proj are listed here, although they are not in the project folder.
Has anyone experienced this? Please tell me how to fix.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-05-12
@saboteur_kiev

Untracked files:
Means that these are local files that are NOT added to the repository.
Each file must first be added with git add, and only then you can do git commit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question