Skip to content

Sumitpathak721/guideGithub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the GitHub Guide for NIET Students

GDSC

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.

Table of Contents

  1. What is GitHub?
  2. Getting Started
  3. Basic GitHub Concepts
  4. Using GitHub
  5. Collaboration on GitHub
  6. Best Practices
  7. Resources
  8. Contributing

What is GitHub?

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.

Getting Started

Creating a GitHub Account

If you don't already have a GitHub account, you can create one for free. Visit GitHub's Signup Page and follow the instructions.

Installing Git

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.

Configuring Git

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"

Choosing a Code Editor

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.

Basic GitHub Concepts

Repositories

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

Commits

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

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

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

Using GitHub

Create your first GitHub Repository

  • 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 !!

Happy coding 🙂

Contributed by Sumit Pathak 🙂

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published