Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (27 sloc) 1.68 KB

Distributed Source Control Management

Unlike SVN, git does not used a central repository. This is why git is "distributed" and SVN is "centralized". Although this makes git an extremely powerful system for collaborators, tracking changes between various collaborators can quickly become difficult as multiple forks are created.

Please read the following before working with this code:

  1. Dealing with newlines
  2. Submitting changes from your fork
  3. Using SSH keys with github

Managing Remote Repositories

First, you will need to tell git about the remote repository:

git remote add kohana git://

This adds "kohana" as a remote repository that can be pulled from.

git checkout -b kohana/master

This creates a local branch "kohana/master" of the master branch of the "kohana" repository.

Merging Changes from Remote Repositories

Now that you have a remote repository, you can pull changes into your local repository:

git checkout kohana/master

This switches to the previously created "kohana/master" branch.

git pull kohana master

This pulls all of the changes from the remote into the local "kohana/master" branch.

git checkout master

This switches back to your local master branch.

git merge kohana/master

This merges all of the changes in the "kohana/master" branch into your master branch.

git push

This pushes all the merged changes into your local fork. At this point, your fork is now in sync with the origin repository!

Something went wrong with that request. Please try again.