Welcome to your first GitHub repository! This tutorial will guide you through the process of creating and managing a GitHub repository using a web browser.
- Visit GitHub: Go to GitHub's website.
- Sign Up: Click on "Sign up" in the upper-right corner and follow the instructions to create your account.
-
Login to GitHub: Go to GitHub's website and log in.
-
New Repository:
- Click on the "+" icon in the upper-right corner.
- Select "New repository".
-
Repository Details:
- Repository Name: Enter a name for your repository.
- Description: Optionally, enter a description.
- Public/Private: Choose if you want your repository to be public or private.
- Initialize Repository: Check the box to initialize the repository with a
README.md
file. - License: Optionally, choose a license.
- .gitignore: Optionally, select a
.gitignore
template.
-
Create Repository: Click "Create repository".
- Upload Files:
- Go to your repository page.
- Click "Add file" and select "Upload files".
- Drag and drop files or browse your computer to upload files.
- Commit the changes by adding a commit message and clicking "Commit changes".
- Editing Files:
- Navigate to the file you want to edit.
- Click the pencil icon to edit the file.
- Make your changes and add a commit message.
- Click "Commit changes".
- Create a Branch:
- Go to your repository page.
- Click the dropdown menu labeled "main" and type a new branch name.
- Click "Create branch".
- Open a Pull Request:
- Go to the "Pull requests" tab on your repository page.
- Click "New pull request".
- Select the branches you want to compare.
- Click "Create pull request" and add details.
- Click "Create pull request" again to submit.
-
Inviting Collaborators:
- Go to the "Settings" tab of your repository.
- Click on "Collaborators" and add collaborators by their GitHub username.
-
Reviewing Pull Requests:
- Review and discuss changes proposed by collaborators in pull requests.
- Go to Releases: On your repository page, click on the "Releases" tab.
- New Release:
- Click "Draft a new release".
- Tag Version: Enter a version number for the release (e.g., v1.0.0).
- Release Title: Enter a title for the release.
- Description: Provide a description of the release changes.
- Attach Files: Optionally, attach binary files or other assets.
- Click "Publish release".
- Navigate to Your Repository: Go to your repository page.
- Edit Description:
- At the top of the page, click on the settings icon (gear) next to the description.
- Enter or edit the repository description.
- Click "Save".
- Navigate to Insights: Go to the "Insights" tab on your repository page.
- View Insights:
- Here you can view various insights such as traffic, contributions, and more.
- Explore different sections like "Community", "Code frequency", "Dependency graph", and more for detailed analytics.
- Read Documentation: GitHub has extensive documentation that can help with advanced topics.
- Stay Organized: Keep your commit messages clear and concise.
- Practice: The more you use GitHub, the more comfortable you'll become.
- GitHub Learning Lab: Interactive tutorials to learn GitHub.
- Pro Git Book: A comprehensive book on Git.
Happy coding! If you have any questions, feel free to ask.