Post-Radicle sync at 2025-06-05 01:07:56
This commit is contained in:
parent
d4edf2afd8
commit
bf03d19403
29 changed files with 351 additions and 1 deletions
73
docs/gitlab/2_create_remote_repo_gitlab_ubuntu.md
Normal file
73
docs/gitlab/2_create_remote_repo_gitlab_ubuntu.md
Normal file
|
@ -0,0 +1,73 @@
|
|||
### 📘 `2_create_remote_repo_gitlab_ubuntu.md`
|
||||
|
||||
```markdown
|
||||
## 📘 `2_create_remote_repo_gitlab_ubuntu.md`
|
||||
|
||||
### 📌 Purpose
|
||||
|
||||
Create a new GitLab repository and push your local Ubuntu project to it using the CLI.
|
||||
|
||||
---
|
||||
|
||||
### 🪐 Step-by-Step
|
||||
|
||||
#### Step 1: Install GitLab CLI
|
||||
|
||||
```bash
|
||||
curl -s https://raw.githubusercontent.com/profclems/glab/trunk/scripts/install.sh | sudo bash
|
||||
````
|
||||
|
||||
#### Step 2: Authenticate GitLab CLI
|
||||
|
||||
```bash
|
||||
glab auth login
|
||||
```
|
||||
|
||||
Choose:
|
||||
|
||||
* GitLab.com or custom instance
|
||||
* Paste your **Personal Access Token** when prompted
|
||||
|
||||
---
|
||||
|
||||
#### Step 3: Initialize your project
|
||||
|
||||
```bash
|
||||
mkdir myproject
|
||||
cd myproject
|
||||
git init
|
||||
echo "# My Project" > README.md
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### Step 4: Create GitLab repository via CLI
|
||||
|
||||
```bash
|
||||
glab repo create myproject --visibility public --confirm
|
||||
```
|
||||
|
||||
This:
|
||||
|
||||
* Creates the GitLab repo
|
||||
* Links it to your local repo
|
||||
* Adds `origin` remote
|
||||
|
||||
---
|
||||
|
||||
#### Step 5: Push to GitLab
|
||||
|
||||
```bash
|
||||
git push -u origin master
|
||||
```
|
||||
|
||||
✅ From now on, `git push` will work as expected.
|
||||
|
||||
---
|
||||
|
||||
````
|
||||
|
||||
---
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue