Using Github

From Open Source Ecology
Jump to: navigation, search

Learning Git

http://gitref.org/

http://learn.github.com/

http://scottr.org/presentations/git-in-5-minutes/

Going to Github Website

Click Here

200px

Make SSH Key

 ssh-keygen

Go to github account settings.

Go to SSH Keys

Copy and Paste the SSH Key starting with ssh-rsa or similar.

When prompted, enter your github password.

Cloning a Repository to a Folder in Your Computer; Pushing your Files to the Repository on Github

Remember to always navigate to your computer's directory that contains the git files.

When prompted in the instructional in the below link, enter your SSH Password

http://myprogrammingblog.com/2012/01/20/github-how-clone-github-repo-how-to-push-to-github-how-to-get-files-from-github-ubuntu/

When pushing, make sure your local files are fast-forwarded to the latest repository files. You can do this by pulling the repository:

 git pull

Checking your Website

Type in your web browser the path to your website files on your computer. Example:

 file:///home/user/teambootstrap/teambootstrap/index.html

Using github as a file archive without a local clone repository

Sometimes you want to get to one or two OSE project files that are stored on github, but you don't need a complete local copy of the repository.

  • Usually you can navigate to the file, open it, and click on the "raw" button at upper right of the viewing pane. (Don't try right-clicking and "save link as" back in the project directory tree; you'll get a fistfull of html.)
  • For text files, the "raw" button is likely to display the unformatted text on screen rather than automatically starting a download. However, you can use your browser's "save page as" function from here.
  • Alternatively, use the "download zip" button on the main project page. This will download a zip archive of all the current files. Use an archive manager to extract the specific files you want.

Note that text-file line endings are operating-system dependent (different variants for linux, Mac, and Windows). Different download methods may use different line-ending conventions.

Comparing Github and launchpad

An interesting opinion here: that Github is designed around the priorities of "coders" (the people doing the work), while Launchpad is designed around the priorities of sysadmins who need to present reliable packages to end users.