Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Hi and thaks. So, my idea was to create a main directory (base repo) myprojects where to insert all my projects that I created ("project1","project2", etc.), in order to have such a structure : myprojects: "project1", "project2", etc. So, from this structure so composed, I wanted to be able to do these 3 things: 1 create a project and run a git push without going to the server first and create an empty repo 2 clone a single project contained in the myprojects folder 3 clone, if necessary, the entire myprojects repo with all my projects contained within. Commented Dec 23, 2020 at 21:21
  • As far as I understand this thing (with git) is not possible, right? Thanks Commented Dec 23, 2020 at 21:21
  • @vincenzogianfelice Correct me if I'm wrong but when you say "without going to the server first" I assume you mean making changes locally before committing them to your git server? If this is the case then you do not need to even use pull/push commands to make changes locally. When you are ready to send changes to your git server that is when you would use push/pull commands. See How to Run Your Own Git Server Commented Dec 24, 2020 at 4:18
  • No, by "without going to the server first" I mean: "without going to the server first, create an empty repo, clone it on the local pc and finally do a git push to send the changes". In a nutshell, I mean if it is possible to upload a new project without first creating the "folder" on the target server. I do not know if you understood. Thanks and happy holidays Commented Dec 26, 2020 at 16:21