Skip to content

How to use github #1

@chadfurman

Description

@chadfurman

You'll want to make a public and private keypair for pushing to your repository.

$ ssh-keygen -t rsa -b 4096

and then give github your public key from ~/.ssh/id_rsa.pub
then you can clone down the repo

$ git clone git@github.com:bradsprojects/DigiPixel.git

inside the DigiPixel folder, you can then make your folders and files. Maybe a third-party folder where people can put code for a pull-request would be a good idea.

Once you make your folders, add them to the git repo.
The below command adds the current working directory, so make sure you're in the DigiPixel folder.

$ git add .
$ git diff --staged 
$ git commit -m 'this message says what changed in these files'
$ git push origin master

That'll get your changes into github nicely.

As for other people, we can fork the repo and put namespaced code in the third-party folder, then submit a pull request. You'll have to read more about pull requests when the time comes.

Best Wishes,
Lotus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions