Explore GitHub for code hosting, project collaboration, pull
requests, and repository management.
GitHub is a web-based platform for version control and collaboration using Git. It allows multiple developers to work together on projects and manage code repositories in the cloud.
Visit https://github.com and click on "Sign Up". Provide your email, username, and password to create an account.
After logging in:
Use this command in your terminal to clone a remote GitHub repo locally.
git clone https://github.com/your-username/your-repo.git
Once changes are committed locally, push them to GitHub:
git push origin main
Used for working on new features without affecting the main branch.
git checkout -b new-feature
git push origin new-feature
Used to propose changes from a branch to be merged into the main branch.
Once the code is reviewed and approved:
Click on your profile picture → Settings. You’ll find:
Required for secure access instead of password:
GitHub Pages lets you host static websites directly from a GitHub repository.
main
) and folder (e.g.,
/root
or /docs
)
https://username.github.io/repo-name
Automate tasks like testing and deployment using workflows.
.github/workflows/
)
Use issues to track bugs, tasks, and feature requests.
Used for open-ended conversations and community interaction in a repo.
Forking creates a personal copy of someone else’s repo under your account.
Star a repo to bookmark it. Watch a repo to get notifications of activity.
Invite others to contribute to your repository directly.
Use organizations to manage multiple projects, teams, and permissions centrally.
Adding topics helps users find your repository by category or technology.
Remove or freeze a repo to prevent further changes.
Your GitHub profile displays a heatmap of your commits and activity over the past year.
Add a custom README to your profile by creating a repository with the same name as your username.
your-username/your-username
README.md
with your bio, portfolio links, and
badges
Use GitHub directly from your terminal using GitHub CLI.
gh repo clone owner/repo
gh issue create
gh pr list
Install from: https://cli.github.com
Used in GitHub Actions for storing sensitive data (API keys, tokens).
Secure your account with 2FA, review devices, and manage app access.
Use Markdown syntax in READMEs, issues, PRs, and comments for formatting.
**Bold**, *Italic*, `Code`, [Link](https://github.com)
- List Item
> Blockquote
Manage tasks visually using Kanban-style boards.
Analyze contributions, commits, PRs, and code frequency in a repository.
GitHub Sponsors allows supporting open source developers financially.
Use an instant cloud-based development environment right inside GitHub.
Comprehensive documentation for all GitHub features including repos, actions, issues, and more.
Interactive tutorials and courses to learn GitHub from beginner to advanced.
Official documentation for setting up GitHub Pages to host static websites.
Automate workflows using GitHub Actions – official guide and syntax.
https://docs.github.com/en/actions
Documentation for using GitHub CLI to manage repos, PRs, and issues from the terminal.
https://cli.github.com/manual/
Learn how to use markdown in GitHub READMEs, issues, and PRs.
https://guides.github.com/features/mastering-markdown/
Overview of GitHub Discussions for community interaction within repositories.