be-graphes/README.md

62 lines
2.7 KiB
Markdown
Raw Normal View History

2018-03-15 18:45:11 +00:00
# Graph & Algorithm project — INSA Toulouse
2018-03-12 16:58:32 +00:00
## How to start?
2018-03-15 18:45:11 +00:00
You will not be able to use this repository to save your work, you need to copy / import / fork it to
your favorite Git platform.
2018-03-12 16:58:32 +00:00
2018-03-12 17:20:13 +00:00
### Importing to [Github](https://github.com), [Bitbucket](https://bitbucket.org) or [Gitlab](https://gitlab.com):
2018-03-12 16:58:32 +00:00
2018-03-15 18:45:11 +00:00
You first need to register and then log in to the platform you want. The steps to import the project are detailed below:
2018-03-12 16:58:32 +00:00
#### Github
2018-03-15 18:45:11 +00:00
1. In the upper-right corner of any page, click the **"+"** icon, then click **Import repository**, or go to [https://github.com/new/import](https://github.com/new/import).
2018-03-12 16:58:32 +00:00
2. Paste the following URL in the first input:
2019-02-24 20:33:05 +00:00
[https://gitea.typename.fr/INSA/be-graphes.git](https://gitea.typename.fr/INSA/be-graphes.git)
2018-03-12 16:58:32 +00:00
3. Choose the name you want for the repository.
4. Click *Begin import*.
5. Wait for completion... Done!
2018-03-12 17:16:28 +00:00
#### Bitbucket
2018-03-15 18:45:11 +00:00
1. On the left panel of any page, click the **"+"** icon, then **Repository**, and then **Import**, or directly go to [https://bitbucket.org/repo/import](https://bitbucket.org/repo/import).
2018-03-12 17:16:28 +00:00
2. Paste the following URL in the first input (select Git as source if not already selected):
2019-02-24 20:33:05 +00:00
[https://gitea.typename.fr/INSA/be-graphes.git](https://gitea.typename.fr/INSA/be-graphes.git)
2018-03-15 18:45:11 +00:00
3. Choose the name you want for repository, and select Git as the *Version control system*.
2018-03-12 17:16:28 +00:00
4. Click *Import repository*.
5. Wait for completion... Done!
#### Gitlab
1. In the upper-right corner of any page, click the **"+"** icon, then **New project**, or directly go to [https://gitlab.com/projects/new](https://gitlab.com/projects/new).
2. Select the **Import project** tab, and then click **Repo by URL** (right-most option).
3. Paste the following URL in the first input:
2019-02-24 20:33:05 +00:00
[https://gitea.typename.fr/INSA/be-graphes.git](https://gitea.typename.fr/INSA/be-graphes.git)
2018-03-12 17:16:28 +00:00
4. Choose the name you want for the repository.
5. Click *Create project*.
2018-03-12 17:20:13 +00:00
6. Wait for completion... Done!
2018-03-15 18:45:11 +00:00
### Importing to another repository provider *[not recommended]*:
2018-03-12 17:20:13 +00:00
1. Create a new **empty** repository (no README, no LICENSE) on your provider. Let's assume the URL of your repository is `$URL_REPOSITORY`.
2. Clone this repository somewhere:
```bash
2018-03-13 14:38:55 +00:00
git clone https://gitea.typename.fr/INSA/be-graphes.git
```
2019-02-24 20:33:05 +00:00
2018-03-12 17:20:13 +00:00
3. Go inside the newly cloned repository and update the **remote**:
2019-02-24 20:33:05 +00:00
2018-03-12 17:20:13 +00:00
```bash
2018-03-13 14:38:55 +00:00
cd be-graphes
2019-02-24 20:33:05 +00:00
git remote set-url origin $URL_REPOSITORY
2018-03-13 14:38:55 +00:00
```
2019-02-24 20:33:05 +00:00
2018-03-12 17:20:13 +00:00
4. Push to your repository:
```bash
2018-03-13 14:38:55 +00:00
push -u origin master
2018-03-13 14:42:46 +00:00
```
2018-03-15 18:45:11 +00:00
Another way is to do a bare clone and then mirror it to your repository: [https://help.github.com/articles/importing-a-git-repository-using-the-command-line/](https://help.github.com/articles/importing-a-git-repository-using-the-command-line/)