Insoshi open-source social networking platform wiki

Recent site activity

Connecting to Forked Repositories

Your local repository is automatically configured to be able to pull changes from the official Insoshi repository because of it was used for the clone.

If you run, git config -l you should see the entries:
  remote.origin.url=git://github.com/insoshi/insoshi.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
(The default remote repository is called origin.)

However, you can also see that local repository doesn't know anything about your forked repository.

Adding Your Forked Repository

You'll need to run the following to add a remote connection to your forked repository:
  git remote add <your_GitHub_account> git@github.com:<your_GitHub_account>/insoshi.git
While you can give it any name you want, you should use your GitHub account name in order to be able to easily identify the connection.  You need to specify the Push URL because you will be using the connection to push updates up to your repository.

You should then fetch the remote branch information into your local repository via
  git fetch <your_GitHub_account>
(If you haven't provided your ssh key to GitHub, you will run into an access issue at this step.  You can update your key information for your GitHub account and re-run the command.)

You can then verify that the branches with the command
  git branch -a
[

   In my case, the commands I ran for the GitHub account long were
  git remote add long git@github.com:long/insoshi.git
git fetch long
   If you try running these exact commands with my account name, you'll run into an access issue on the fetch.

]

Adding Other Forked Repositories

You might also want to look at other forked repositories at GitHub in order to see changes that someone else has worked on that isn't yet in the official Insoshi repository or if you need to get updates as part of working in a team.

To add the other forked repository run
  git remote add <someones_GitHub_account> git://github.com/<someones_GitHub_account>/insoshi.git
Once again, we're using the GitHub account name of the forked repository's owner as the remote nickname.  The URL used in the remote command is the Clone URL for the repository as it allows read-only access without any security configuration.

Fetch the remote branch information
  git fetch <someones_GitHub_account>
and verify the remote branches are in your local repository with
  git branch -a
[
 
  If you wanted to connect to my forked repository at GitHub, you would run
  git remote add long git://github.com/long/insoshi.git
git fetch long
]