707 B
707 B
📘 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