This repository is designed to help you, 2nd-year students, get started with GitHub, a powerful platform for version control and collaborative coding. Whether you're new to programming or just starting your journey, this guide will assist you in understanding and using GitHub effectively.
- What is GitHub?
- Getting Started
- Basic GitHub Concepts
- Using GitHub
- Collaboration on GitHub
- Best Practices
- Resources
- Contributing
GitHub is a web-based platform for version control, collaboration, and code sharing. It allows developers to work on projects together, track changes, and manage code efficiently. GitHub is widely used in the software development industry for both open-source and private projects.
If you don't already have a GitHub account, you can create one for free. Visit GitHub's Signup Page and follow the instructions.
Git is a distributed version control system that works seamlessly with GitHub. You can download and install Git by following the instructions for your specific operating system: Git Installation Guide.
After installing Git, you'll need to configure it with your GitHub credentials. Run the following commands in your terminal:
git config --global user.name "Devansh Prakash"
git config --global user.email "devanshprakash02.com"
Choose a code editor of your choice so that you can start contributing to Open Source. Example of some Code Editors are Microsoft Visual Studio Code, Sublime text, Vim, IntelliJ IDEA etc.
-
Microsoft Visual Studio Code - Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made by Microsoft with the Electron Framework, for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. Users can change the theme, keyboard shortcuts, preferences, and install extensions that add functionality.
-
Sublime text - Sublime Text is a shareware text and source code editor available for Windows, macOS, and Linux. It natively supports many programming languages and markup languages. Users can customize it with themes and expand its functionality with plugins, typically community-built and maintained under free-software licenses. The editor utilizes minimal interface and contains features for programmers including configurable syntax highlighting, code folding, search-and-replace supporting regular-expressions, terminal output window, and more.
-
Vim - Vim is a free and open-source, screen-based text editor program. It is an improved clone of Bill Joy's vi. Vim's author, Bram Moolenaar, derived Vim from a port of the Stevie editor for Amiga and released a version to the public in 1991. Vim is designed for use both from a command-line interface and as a standalone application in a graphical user interface.
-
IntelliJ IDEA - IntelliJ IDEA is an integrated development environment written in Java for developing computer software written in Java, Kotlin, Groovy, and other JVM-based languages. It is developed by JetBrains and is available as an Apache 2 Licensed community edition, and in a proprietary commercial edition.
A repository contains all of your project's files and each file's revision history. You can discuss and manage your project's work within the repository. GitHub repositories are essential for developers. They provide a platform to store and manage code, share projects with other people, collaborate on coding projects and much more. Learn more
Similar to saving a file that's been edited, a commit records changes to one or more files in your branch. You can save small groups of meaningful changes as commits. When you make a commit, you must include a commit message that briefly describes the changes. Learn more
Branches allow you to develop features, fix bugs, or safely experiment with new ideas in a contained area of your repository. You always create a branch from an existing branch. Typically, you might create a new branch from the default branch of your repository. You can then work on this new branch in isolation from changes that other people are making to the repository. A branch you create to build a feature is commonly referred to as a feature branch or topic branch. Learn more
Pull requests lets you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch. After initializing a pull request, you'll see a review page that shows a high-level overview of the changes between your branch (the compare branch) and the repository's base branch. Other contributors can review your proposed changes, add review comments, contribute to the pull request discussion, and even add commits to the pull request. By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. After the author's of the repository are happy with the proposed changes, they can merge the pull request. Learn more
- Come to Dashboard on github.com
- Click on New Button to Create new Repository.
- Choose a Name for your repository and click on add a Readme file.
- Scroll down and click on create repository.
- Your first repository is Created !!
Contributed by Sumit Pathak 🙂