Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I create submodules? #14

Open
seanpm2001 opened this issue Sep 7, 2021 · 1 comment
Open

How do I create submodules? #14

seanpm2001 opened this issue Sep 7, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation Question about Git For my questions on Git.

Comments

@seanpm2001
Copy link
Owner


How do I create submodules?

I have been trying to create a submodule for several months, and I have gotten close but didn't succeed.

Here is a sample:

[submodule "Torvalds/Linux"]
	path = WacOS/Kernel/Linux5.7
	url = https://github.com/torvalds/linux

File name: .gitmodules

The goal is to create a folder/module that when clicked will take you to https://github.com/torvalds/linux

I have tried many methods, and I just can't create one. The closest I have gotten was this, and I received an error (file could not be created)

Submodule_Fail_2021September6th_LightMode_1080p

I am using GitHub through the Firefox web browser on Linux, and I do not have Git installed. I can't install Git at the moment, as I already messed up my last laptop when installing SAMBA, and I don't want to mess this one up as well. Is there any way to make a submodule with the browser? If not, what is a good resource for creating one? I have tried the guide on https://git-scm.com/ but it didn't help much.


@seanpm2001 seanpm2001 added documentation Improvements or additions to documentation Question about Git For my questions on Git. labels Sep 7, 2021
@seanpm2001 seanpm2001 pinned this issue Sep 7, 2021
@demostanis
Copy link

I have been able to reproduce your issue. You typed url: instead of url = . GitHub checks if the file is valid before making the commit for you. As it's not, it will error out. The error message should probably be improved to help the committer solve the issue, but only Microsoft has power on this.
Note also that, according to gitmodules(5) (which I recommend you to read):

The path name must not end with a /

@seanpm2001 seanpm2001 unpinned this issue Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Question about Git For my questions on Git.
Projects
None yet
Development

No branches or pull requests

2 participants