Learn Git and GitHub from basics to advanced with step-by-step tutorials, real-world examples, and best practices for developers.
Start Learning for FreeThis page explains GitHub from zero using simple steps and commands.
git --version
Set your name and email (used in commits)
git config --global user.name "Your Name"git config --global user.email "youremail@gmail.com"
SSH key is used to connect GitHub securely
ssh-keygen -t ed25519 -C "youremail@gmail.com"eval "$(ssh-agent -s)"ssh-add ~/.ssh/id_ed25519clip < ~/.ssh/id_ed25519.pubssh -T git@github.com
mkdir my-first-repocd my-first-repogit inittouch README.mdecho "# My First GitHub Project" > README.mdgit add .git commit -m "Initial commit"git remote add origin git@github.com:USERNAME/my-first-repo.gitgit branch -M maingit push -u origin maingit statusgit pullgit pushEdit → Add → Commit → Push
Go to your project folder, right-click, and select Open in Terminal / CMD.
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/USERNAME/REPOSITORY-NAME.git
git branch -M maingit push -u origin main
Your project is now uploaded to GitHub.
Your project is uploaded without using CMD.
Go to your private repository and click on the Settings tab.
From the left menu, select Collaborators.
The invited user must accept the GitHub invitation to gain access.