README.md 969 Bytes
Newer Older
Romain MATIAS's avatar
Romain MATIAS committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Command line instructions

You can also upload existing files from your computer using the instructions below.

## Git global setup
```
git config --global user.name "Romain MATIAS"
git config --global user.email "["ext.exodev.rmatias@grandlyon.com"]"
```

## Create a new repository
```
git clone https://forge.grandlyon.com/erasme/plateforme-calque-front.git
cd plateforme-calque-front
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
```

## Push an existing folder
```
cd existing_folder
git init --initial-branch=main
git remote add origin https://forge.grandlyon.com/erasme/plateforme-calque-front.git
git add .
git commit -m "Initial commit"
git push -u origin main
```

## Push an existing Git repository
```
cd existing_repo
git remote rename origin old-origin
git remote add origin https://forge.grandlyon.com/erasme/plateforme-calque-front.git
git push -u origin --all
git push -u origin --tags
```