test
This commit is contained in:
commit
9212996247
6 changed files with 370 additions and 0 deletions
51
github/3_commit_existing_repo_github_ubuntu.md
Normal file
51
github/3_commit_existing_repo_github_ubuntu.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
## 📘 `3_commit_existing_repo_github_ubuntu.md`
|
||||
|
||||
### 📌 Purpose
|
||||
|
||||
Work with an existing remote GitHub repository on Ubuntu. This includes cloning, committing changes, and pushing updates.
|
||||
|
||||
---
|
||||
|
||||
### 🛠️ Step-by-Step
|
||||
|
||||
#### Step 1: Clone the repository
|
||||
|
||||
```bash
|
||||
git clone git@github.com:your-username/your-repo-name.git
|
||||
cd your-repo-name
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### Step 2: Make your changes
|
||||
|
||||
```bash
|
||||
nano example.txt
|
||||
```
|
||||
|
||||
Or update files as needed.
|
||||
|
||||
---
|
||||
|
||||
#### Step 3: Stage and commit your changes
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "Describe your update"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### Step 4: Push to GitHub
|
||||
|
||||
```bash
|
||||
git push origin main
|
||||
```
|
||||
|
||||
> Use the correct branch name if not `main`. Confirm with:
|
||||
|
||||
```bash
|
||||
git branch
|
||||
```
|
||||
|
||||
---
|
Loading…
Add table
Add a link
Reference in a new issue