Rony M.
Rony M.

Reputation: 405

Is it safe pushing nested folders to GitHub?

For example, instead of pushing JS project repos one by one to GH, what if make them subfolders to a "JS projects" main folder and then push it? Just want to make sure if that's safe from conflicts on the long term.

Upvotes: 0

Views: 212

Answers (2)

Mureinik
Mureinik

Reputation: 312289

Git (and GitHub) handles directories and nested directories just fine. As long as you, as a user, can still find your way around the directory structure, there shouldn't be any problem.

Upvotes: 1

Mocca
Mocca

Reputation: 499

Conflicts will appear if you have different contributors making changes in the same piece of code. That has nothing to do in the decision of putting them under the same project or not.

How you organize your repos is your decision in terms of how do you want to track the changes in every subproject. If you think that it's a good idea to have them grouped, then maybe it is. Every design is based on decisions and you have to make one for your design.

Hope that my ambiguous answer had helped you to make a non ambiguous decision!

Upvotes: 1

Related Questions