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

707 B
Executable file

📘 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

git clone git@github.com:your-username/your-repo-name.git
cd your-repo-name

Step 2: Make your changes

nano example.txt

Or update files as needed.


Step 3: Stage and commit your changes

git add .
git commit -m "Describe your update"

Step 4: Push to GitHub

git push origin main

Use the correct branch name if not main. Confirm with:

git branch