README - AdemKao/github-mcp-demo GitHub Wiki
GitHub MCP Demo
This repository demonstrates how to initialize a local project and sync it with a new GitHub repository.
User Prompt
create a public repo named github mcp demo and sync local project (current folder) and write all step in README.md include my prompt than add a commit and push to repo before do this, also add into .md
Steps to Sync Local Project with GitHub
-
Initialize a Git repository in your project folder:
git init -
Add the remote repository:
git remote add origin https://github.com/AdemKao/github-mcp-demo.git -
Add all files to the staging area:
git add . -
Commit the files:
git commit -m "Initial commit" -
Rename the default branch to
main:git branch -M main -
Push to GitHub:
git push -u origin main
Notes
- Make sure you have files in your project directory before running
git add .andgit commit. - You need to have git installed and be authenticated with GitHub to push changes.