Skip to content

Get started

Nicolas Jourdan edited this page Oct 17, 2018 · 11 revisions

In order to install the project, run :

git clone https://github.com/NicolasJourdan/brefngames.git

or

git clone [email protected]:NicolasJourdan/brefngames.git(for SSH protocol).

The repository is now on your local machine. You probably forked https://github.com/NicolasJourdan/brefngames, so it is possible that your fetching host is this fork.

  1. Check your remotes

git remote -v

origin [email protected]:YourName/brefngames.git (fetch)
origin [email protected]:YourName/brefngames.git (push) 
upstream [email protected]:NicolasJourdan/brefngames.git (fetch)
upstream [email protected]: NicolasJourdan/brefngames.git (push) 

If you don't have these lines, delete/add to have these.

Delete

origin

git remote remove origin

upstream

git remote remove upstream

Add

origin

git remote add origin https://github.com/YourName/brefngames

upstream

git remote add upstream https://github.com/NicolasJourdan/brefngames

First Pull

During your first pull on develop, it is possible that this message appears :

There is no tracking information for the current branch.
   Please specify which branch you want to merge with.
   See git-pull(1) for details

   git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

   git branch --set-upstream develop origin/<branch>

This error appears because git doesn't know if the upstream or the origin has to be pulled. You have to set it.

git branch --set-upstream develop upstream/develop

Create a .gitignore

You have to ignore some files or directories (like setting IDE, etc.) that you don't want to commit.

Set up your .gitinore file

git config --global core.excludesfile '~/.gitignore'

Edit your .gitignore

vi ~/.gitignore

.idea/
brefngames.iml
out/
Clone this wiki locally