How do I get a mod on GitHub?

User avatar
Phoenixflo44
Member
 
Posts: 606
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

How do I get a mod on GitHub?

by Phoenixflo44 » Wed May 16, 2018 16:06

This may sound a bit weird but I don't know how to upload a mod or map there. Can explain to me a step by step. But please just here. Because I don't get along on the page myself because everything is in English.

Greetings Phoenixflo44
+ Spoiler
 

User avatar
Hamlet
Member
 
Posts: 463
Joined: Sat Jul 29, 2017 21:09
Location: Italia
IRC: H4mlet

Re: How do I get a mod on GitHub?

by Hamlet » Wed May 16, 2018 17:54

Phoenixflo44 wrote:This may sound a bit weird but I don't know how to upload a mod or map there. Can explain to me a step by step. But please just here. Because I don't get along on the page myself because everything is in English.

Greetings Phoenixflo44


Try this: https://git-scm.com/book/de/v2

The first chapter is in German, it might be helpful to understand the basics.
 

User avatar
Krock
Developer
 
Posts: 4152
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: How do I get a mod on GitHub?

by Krock » Wed May 16, 2018 17:57

Don't upload large binary data to git. It's only suited for source code and rare changed, small binary files. The reason for that is because git keeps all the changes in its history, which makes change reverting (undoing) possible. Instead, consider using a fast and reliable web hoster to upload your world in an archive file.

Here are some DuckDuckGo results of pages with German explanations:
Command line: https://rogerdudler.github.io/git-guide/index.de.html
Command line: https://www.youtube.com/watch?v=hSbJaIdqwKg
TortoiseGIT: http://www.informatik.uni-leipzig.de/~g ... ByStep.pdf
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Phoenixflo44
Member
 
Posts: 606
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

Re: How do I get a mod on GitHub?

by Phoenixflo44 » Wed May 16, 2018 18:30

That didn't help me anymore I still don't understand it
+ Spoiler
 

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: How do I get a mod on GitHub?

by Lejo » Sat May 19, 2018 14:25

First create a new Repository.
There is a Upload files button near the green Clone or Download button.
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How do I get a mod on GitHub?

by rubenwardy » Sat May 19, 2018 14:48

Lejo wrote:First create a new Repository.
There is a Upload files button near the green Clone or Download button.


Don't use the upload files button, it's the wrong approach for git

I suggest downloading the Github Desktop client and using that. Create a repository which is the mod directory - init.lua should immediately be in that dir. Learn what commits are and what push and pull means, and you're good to go. Do not upload zips on git
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: How do I get a mod on GitHub?

by Linuxdirk » Sat May 19, 2018 16:27

rubenwardy wrote:I suggest downloading the Github Desktop client and using that.

Better install the regular Git application and learn the most basic git commands.
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: How do I get a mod on GitHub?

by Linuxdirk » Sun May 20, 2018 05:27

rubenwardy wrote:but come on, be realistic

I am. There is absolutely no complicated thing in installing and using Git. Even on Windows.

GitHub gives copy&paste-able lines to initialize a repository and do the first commit. After this for the most basic usage you literally need two commands (git commit -a and git push) to have your stuff versioned by GitHub and get automatic public availability.
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How do I get a mod on GitHub?

by rubenwardy » Sun May 20, 2018 07:51

For us it's easy, not so much for someone less technically competent
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: How do I get a mod on GitHub?

by Linuxdirk » Sun May 20, 2018 08:56

rubenwardy wrote:For us it's easy, not so much for someone less technically competent

But you realize we talk about people who are able to program in Lua, right?
 

Reedych
Member
 
Posts: 58
Joined: Wed Aug 03, 2016 08:09
GitHub: SlackCoyote
In-game: SlackCoyote

Re: How do I get a mod on GitHub?

by Reedych » Mon May 21, 2018 08:17

Everything written in English at 99% was translated to Deutsch.
Slackware64 14.2, MT 0.4.16. My best mod.
 

User avatar
Punk
Member
 
Posts: 150
Joined: Sun Dec 25, 2016 06:52

Re: How do I get a mod on GitHub?

by Punk » Mon May 21, 2018 16:28

Can I download current mods, games and textures with "apt upgrade" on the terminal somehow?
Thanks!
DON'T STEAL! The government hates competition.
 

User avatar
Punk
Member
 
Posts: 150
Joined: Sun Dec 25, 2016 06:52

Re: How do I get a mod on GitHub?

by Punk » Mon May 21, 2018 16:43

Strange advice for those who can not download from github...

Phoenixflo44 wrote:That didn't help me anymore I still don't understand it


Don't worry.

The easy way: Download zip file, unzip, and put the folder in the appropriate location in the Minetest folder.

The Minetest folder has folders like games, mods, textures, worlds... it is.
games = subgames, worlds = maps
DON'T STEAL! The government hates competition.
 

User avatar
Phoenixflo44
Member
 
Posts: 606
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

Re: How do I get a mod on GitHub?

by Phoenixflo44 » Tue May 22, 2018 15:57

I meant I don't know how to upload a mod on GitHub. I've been downloading for a long time, just like unpacking.
+ Spoiler
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: How do I get a mod on GitHub?

by Linuxdirk » Tue May 22, 2018 16:28

Phoenixflo44 wrote:I meant I don't know how to upload a mod on GitHub. I've been downloading for a long time, just like unpacking.

Actually it is incredibly easy to do the basic things with Git. When using GitHub it is even more easy.

First step is installing Git on your computer. Install it like any other application. Then you go to GitHub and create a new repository. This gives you a set of commands you need in order to actually "set up" the repository on your computer. Run the commands in the directory where your mod is located (on Windows: Shift+rightclick the folder and select "Open Command Prompt here").

Oh, by the way: GitHub's own help pages are fantastic. Start here: https://help.github.com/articles/create-a-repo/

After doing all the initial stuff there are literally two commands you need on a daily basis: git commit -a let's you commit all changed files (combine with -m "message" to add a commit message, otherwise the editor will open and let you write a message there) and git push sends the committed changes to the server. You can commit as many changes you want before pushing them to the server. I usually code and commit some time and when I'm done with everything I want to achieve for the day I push the changes to the server.

For adding new files to the repository copy them where you want within the repository's folder and run git add path/to/file.name or git add path/to/folder to add all files within that folder at once. Don't worry, you can run the commands as often you want, git adds the stuff only once. After doing the initial stuff shown by GitHub you need to add the files of your mod to the repository. Run git status to see what Git currently knows about the repository in relation to the files it has access to.

For deleting files, well, simply delete them. Even if git has some functions for that it also takes care of this automatically when committing the changes (you should commit changes after every larger action like adding/removing files or implementing a new feature).

You should do it right from the beginning on, so read here before starting to commit changes: https://chris.beams.io/posts/git-commit/

See here for the awesomely great Github docoumentation.

https://help.github.com/articles/adding ... mand-line/
https://help.github.com/articles/pushing-to-a-remote/

See here for a fun little live-demo/tutorial: https://try.github.io/levels/1/challenges/1
 

User avatar
LMD
Member
 
Posts: 688
Joined: Sat Apr 08, 2017 08:16
Location: Somewhere over the Rainbow : Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo

Re: How do I get a mod on GitHub?

by LMD » Mon Aug 20, 2018 16:02

1. Create a GitHub account
It's quite easy :
- first, open a terminal. Press Strg+Alt+T on Ubuntu.
- then, type : cd "/home/<username>/pfad/zu/ordner"
- afterwards type git init to init repo. Specify "origin"(=online repo where you wanna upload it) by : git remote add origin https://github.com/<username>/<reponame>
- now : git add . to stage all files for commit
- finally : git commit -m "Uploading all files" to create commit
- to upload it : git push origin master -f to force upload
Voila !
Tell me if it doesnt work.
Magic-CTF(soon)MTPCFractal-SuiteModel Creator Schematic CreatorColorfulXmas BallsWebsite • Never judge me by my age
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 1 guest