I'm trying to use Visual Studio 2015 as my main dev tool and with git functionality I keep running to problems with folder structure.
Example: VS2015 Python Project.
Solution(sprinter)
-Project(sprinter)
--Project Environments
--Folder(sprinter, holds the main files)
--requirements.txt
--runserver.py
When I go to commit this to an empty git repo, on say GitLab, instead of it committing the files in "Folder(sprinter) and the requirements file (which I have to only include, everything else is excluded). I get this.
Repo(sprinter)
- sprinter
--sprinter
---sprinter(folder with files)
---requirements.txt
I've not seen anyone else on github or gitlab with this structure, it's usually just the source files:
-static
-content
-requirements.txt
-app.py
Am I doing something wrong with how I do the initial push?
Am I doing something wrong with how I do the initial push?
Not with the initial push, no.
But the way the git repo has been initialized can explain why: it has been created above the sprinter
solution folder, instead of inside it.
Check if you reproduce the issue with this Git-Visual Studio tutorial ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.