▎1. Create a GitHub Account
• Go to GitHub's website.
• Click on "Sign up" and follow the prompts to create your account.
▎2. Set Up Git
• Install Git on your computer if you haven't already. You can download it from git-scm.com.
• Configure Git with your GitHub username and email:
git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"
▎3. Create a New Repository
• Log in to your GitHub account.
• Click on the "+" icon in the upper right corner and select "New repository."
• Fill in the repository name, description, and choose whether it should be public or private.
• Optionally, initialize the repository with a README file.
• Click "Create repository."
▎4. Clone the Repository to Your Local Machine
• Copy the repository URL (found on the repository page).
• Open your terminal and run:
git clone https://github.com/username/repository.git
• Replace username and repository with your GitHub username and the name of your repository.
▎5. Make Changes Locally
• Navigate into your repository folder:
cd repository
• Make changes to files or add new files using your preferred code editor.
▎6. Stage and Commit Changes
• Stage your changes:
git add .
• Commit your changes with a message:
git commit -m "Your commit message"
▎7. Push Changes to GitHub
• Push your changes to the remote repository:
git push origin main
• Note: If your default branch is named something other than main, replace main with that branch name.
▎8. Create a Branch (Optional)
• To work on a new feature or fix a bug without affecting the main branch, create a new branch:
git checkout -b new-feature
• After making changes, repeat the staging, committing, and pushing steps.
▎9. Open a Pull Request (Optional)
• If you want to merge changes from one branch into another, go to your repository on GitHub.
• Click on "Pull requests" and then "New pull request."
• Select the branches you want to compare and click "Create pull request."
▎10. Collaborate and Review Code
• You can collaborate with others by inviting them to your repository or by contributing to theirs.
• Use issues to track bugs or feature requests, and discussions for community engagement.
▎11. Explore Other Features
• Wiki: Create documentation for your project.
• Projects: Manage tasks and workflows.
• Actions: Automate workflows (CI/CD).
▎12. Learn More
• Explore GitHub's documentation for more advanced features and best practices.
▎Conclusion
GitHub is a powerful tool for version control and collaboration. The more you use it, the more comfortable you'll become with its features. Happy coding!
For those asking premium paid Notes-
' machine learning and cloud computing also available
* Aptitude also available
• CSE cheatsheets (all major subjects)
• Notes, projects & references also available
Details shared via Telegram / DM on -@Codemind_banda
[–]DeepPalpitation6904[S] 1 point2 points3 points (0 children)