Difference: GitHubUse ( vs. 1)

Revision 12009-07-23 - dpb

Line: 1 to 1
META TOPICPARENT name="VirtualizationProjectHome"

Using github Online Repositories

This is a very brief introduction to using github to manage your git repositories. It assumes that you have git installed and know a little bit about how to use it. You will be required to register an account at https://github.com/

These instructions cover the most basic tasks for using github. For more information, refer to the above github website, and more specifically to the github guides: github - guides

Quick github Usage

Clone a remote (github) repository:

git clone [url] git clone git@github.com:repository_host/repository_name.git

Pull changes from a branch on a remote link (check .git/config for the name of remote link)

git pull [remote_name] [branch] git pull origin master

Note that the default remote name when cloning is "origin"

Add remote repositories to local environment

git remote add [remote_name] [url] git remote add upstream git://github.com/repository_host/repository_name.git

Note that the remote add example above uses a Public clone url from github. This effectively means that you can not push changes to the added repository unless you are the repository's owner. To add a remote repo that you can push to, use the "Your url" type of url from github (eg: git@github.com:repository_name/repository_host.git)

Push changes to a remote repository

git push [remote_name] [branch] git push origin master

Note that the changes made must be committed in the local repository to be pushed.

-- DuncanPenfoldBrown - 2009-07-23

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback