• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Tool] Help Using GitHub

  • 25
    Posts
    3
    Years
    • She/Her
    • Seen Apr 28, 2025
    Howdy! Newbie coder here developing a Pokemon Red romhack using the Pokered Disassembly with bits of code taken from Shin Pokered and Pokeyellow as reference.
    I've gotten the files from GitHub using Cygwin and have managed to construct working patches and Roms by modifying the files on my own pc (Windows).

    Now my question is: How do I upload things to GitHub?

    I'm serious. I've been reading GitHub's instructions on building a depository and Lunos' tutorial, but something just isn't clicking for me.

    Specifically, I've been trying to upload the modified disassembly to a new project (currently deleted from GitHub just in case), and relink to the Disassembly Github pages and Shin Pokered in the Readme below it.

    The problem is, whenever I try to upload an individual file (since I can't upload any of the folders in their entirety), it tells me it's hidden. It very much isn't, but just in case I triple-checked the properties, copied the files to the desktop, and tried again. Same result.

    As for the command prompt under actions, I just can't parse it. ADHD brain in full overdrive today.

    Any help simplifying the process so I can share the files and work with others would be spectacular.

    Thank you and sorry for the basic question.
     
    Last edited:
    Now my question is: How do I upload things to GitHub?
    As I explained in my thread about merging Eggs' branches, the steps are:
    1) Track the repository you want to push your stuff to by using git remote add keyword link.
    2) Pack your file changes in a commit. This is done by using git add . and git commit.
    3) Push your stuff using git push keyword branch.

    Notes:
    -Keyword is a word of your choice that will act as a shortcut to the repository in question.
    -Link is the link to the repository you wanna push stuff to. Make sure not to put the link to a branch.
    -You can use git branch to check the name of the branch you're currently on.

    So for example, if I did some changes to src/data/wild_encounters.json or whatever in a branch called "test", I would:
    1) git remote add myrepo https://github.com/LOuroboros/pokeemerald
    2) git add ..
    3) git commit, write a title and a description, and then Ctrl+X to exit the text editor used by the terminal.
    4) git push myrepo test, type in my GitHub acc's user and pass, and press Enter.

    And that's all there is to it.
     
    So I've got it nearly there, but when I type the command function, once it gives me the "Please enter the commit message for your changes." line, I'm not able to put in any more functions. I can type things in, but nothing registers, and scrolling up or using the arrow keys fills the lefthand line with a, b, c, or d depending on how I try to scroll. Email and Password do nothing, push keyword test does nothing.

    Image for details.
    [PokeCommunity.com] Help Using GitHub
     
    So I've got it nearly there, but when I type the command function, once it gives me the "Please enter the commit message for your changes." line, I'm not able to put in any more functions.
    git commit opens a text editor for you to type a title and a description for your commit.
    As I said before, once you're done writing it, you just have to press Ctrl+X.
    If that doesn't work for whatever reason, try :q instead.
    Looking at that pic, you'll probably have to close the terminal and try again since you wrote a lot of nonsense in there.
     
    Spoiler:


    EDIT: Got it. Thanks for the help.

    The issues I had, in order were as follows

    1. I forgot to reference the folder on my own computer. So obviously I couldn't do anything with it. Solved by typing [cd Retyped-Red], with Retyped-Red\ being the folder in question.
    Then I followed your instructions until...

    2. I couldn't exit the Title editor. This was the issue in my previous post. I solved it by holding [Shift] and pressing [z] twice after typing in the description.
    After that I just had to put in the [git push] command which was my third issue...

    3. I thought the [test] bit was a command, not a target. I needed to target the branch on github I was pushing to, which in my case was [main].

    Once I figured that out, it was smooth sailing. Thank you Lunos for your help and patience! Your guide and walking me through the prompts have helped a lot and I'll be able to link my files to the romhack page!
     
    Last edited:
    I know you already solved it but when I do a commit I do:

    git commit -m "message"

    Where "message" is the description of the commit you want. I find it simpler than that text editor and the result is the same.

    For example:

    git commit -m "My first commit"
     
    I know you already solved it but when I do a commit I do:

    git commit -m "message"

    Where "message" is the description of the commit you want. I find it simpler than that text editor and the result is the same.

    For example:

    git commit -m "My first commit"
    To clarify, what you're calling a description is not a description, it's the title.
    git commit -m only lets you set that, a title for the commit and that alone.
    git commit allows you to set a title and also a description.

    Though yes, one can use whichever of them they want. Whatever floats their boat.
     
    Back
    Top