git-sigil/docs/gitlab/3_commit_existing_repo_gitlab_ubuntu.md
2025-06-14 03:08:15 -05:00

680 B
Executable file

📘 3_commit_existing_repo_gitlab_ubuntu.md

## 📘 `3_commit_existing_repo_gitlab_ubuntu.md`

### 📌 Purpose

Work with an existing GitLab repo: clone, edit, commit, and push using Ubuntu.

---

### 🛠️ Step-by-Step

#### Step 1: Clone the repository

```bash
git clone git@gitlab.com:your-username/your-repo.git
cd your-repo

Step 2: Edit files

nano myfile.txt

Step 3: Stage and commit

git add .
git commit -m "Your change description"

Step 4: Push your changes

git push origin master

If you use another branch (e.g., main, dev), substitute accordingly.



---