Skip to content

This repository contains git and Github workshop for Gandaki University

Notifications You must be signed in to change notification settings

nirajand/git-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git and GitHub Training (Workshop) at Gandaki University

Author: Nirajan Dhakal

Git Image          Visual Studio Code Logo

Credit: FreeCodeCamp                             Credit: Elegant Themes

Git  GitHub  Visual Studio Code  C  HTML5  CSS3  JavaScript  NodeJS  Java 


It is advised that you read all the text here once thoroughly and then return to the top to follow the instructions on what and how to do things for this workshop.

Here you will learn:

  1. How to install Git on your computer
  2. How to use Git on your computer
  3. Learn about Open Source
  4. How to create a GitHub account
  5. How to use GitHub on your computer
  6. How to create a repository on GitHub
  7. How to use Git commands on your computer
  8. How to use Terminal or Powershell on your computer

Download the following programs:

  • Git
  • GitHub Desktop Application
  • Visual Studio Code
  • (Optional: Download only if you need it) GCC Compiler
  • Sublime Text
  • Java Development Kit

The path to download each program is provided below.

  1. Git: https://git-scm.com/downloads
  2. GitHub Desktop Application: https://desktop.github.com/
  3. Visual Studio Code: https://code.visualstudio.com/
  4. GCC Compiler: https://sourceforge.net/projects/mingw/files
  5. Sublime Text: https://www.sublimetext.com/
  6. Java Development Kit (JDK): https://www.oracle.com/java/technologies/downloads/

Note that you download all the necessary applications first and then go through installation phase only for the programs mentioned here.

After you download the applications, please install VS Code* and GitHub Desktop Application but do not perform anything as of now.


For Git, you have to set Environment Variables in PATH directory, which can be overwhelming. VS Code takes long time to install in the device, and to continue with smoothy work, please install it after the file is downloaded.

As of writing, Git version is 2.40.0. For your simplicity, there is a monitor icon at the right side on the website. You can download from that button. In Linux based OS, Git used to be pre-installed in the OS but this is not the case these days, so Linux users too can download Git from the command below:

For debian based Linux Distro, enter the following command on your terminal: sudo apt-get install git

For MacOS, you can download Git from: https://git-scm.com/download/mac


If you have any problem regarding Git, please visit this url. This is redirect link to StackOverflow which provides beginner's practical guide to Git and can be a great resource to learn Git.

If you have any problem in downloading Git, go to a pdf file here and read the document, you will find the solution. The PDF is large, and GitHub won't show the file in the Rendered Block. Download the file and look into it.

To Follow the Git Manual, go to the Manual and follow along.

  • To Download Mingw (GCC Compiler), To Set Up VS Code for GCC Compiler, please follow the instructions from the videos in the link below:

------------- Mingw and GCC Compiler are necessary to compile and run C/ C++ programs. If you are not contributing related to C or C++ programming languages, it is not necessary to install them. -------------------

ULTIMATE VS CODE AND GCC COMPILER ALONG WITH C PROGRAMMING REFERENCE

Click Here for the Ultimate Resource.


Before We Dive In Into Git and Github, We Will Learn Simple Terminal Commands To Ease Up Our Workflow:

If you are Windows 11 user, you will find Terminal when you Right-Click on your screen. In Windows 10 and lower versions, you will find Command Prompt. To open Command Prompt, hold Windows key and press R (Windows + R) key at the same time. A dialogue box appears. Type cmd and press Enter key. A black screen appears which is Terminal / Command Prompt.

The Terminal will look something like this:

Terminal Image

  1. Changing Directory (Accessing Directory): cd

    For example: To access Desktop, type cd desktop. Note that there should be a whitespace (space) between cd and desktop. If desktop doesn't work, type Desktop.

    Again, to access a Directory (Folder) inside Desktop (If your computer has), type cd folderName where foldername is the name of the folder/ directory you want to access to.

  2. Changing Drive Root: driveName:

    driveName is the name of drive that you are currently on. Typically, you are in C: drive when you first open Terminal. To change the drive root, type the name of drive (capital letter) followed by : (colon).

    For example, I am currently in C: drive. If I want to go to N: drive, I will type N: and press Enter key.

  3. Reaching Parent Directory: cd.. cd followed by two periods (fullstops).

  4. Reaching Root Directory: cd\ cd followed by a backward slash.

  5. Reaching to a folder from folder path: cd\folderName\subFolderName

    Reaching to a folder with less effort: cd initialLettersOfFolderName Tab Key. Here, type cd and space, then type two or three letters of the folder and press Tab key.

  6. Creating a Directory/ Folder: mkdir directoryName or md directoryName

    For example, if you want to create a directory or a folder with name Test Folder, type mkdir Test Folder. You can use mkdir or md to create a directory.

  7. To Know About the System Information: systeminfo

  8. To Know In Which Volume Are We Working: vol

  9. To Know the Version of Operating System (OS): ver

  10. To Know Folder Content of a Certain Directory: dir

  11. To Rename a file/ Folder: ren oldFileName.fileType newFileName.fileType or rename oldFileName.fileType newFileName.fileType

  12. To Delete File: erase fileName.fileType or del fileName.fileType

  13. To Delete Directory / Folder: rmdir directoryName

  14. To check ping: ping siteName


Go to Git.md to learn about Git, GitHub, and many more!


If you have been follwing the Git.md file, when you commit to a repository on GitHub, you will encounter with a error that needs you to have agreed to Contributor's License Agreement (CLA). To do that, go to https://cla.developers.google.com/about/google-individual and read the terms of the agreement, and provide your GitHub username and the mailing address that was used to sign in into GitHub so as to maintain commits to the Open Source Community.

Open Source Ecosystem

Open Source is a type of software development in which the source code of the software is freely available for anyone to view, modify, and distribute. Open Source Software is 100% free and is developed by a community of developers who freely share their knowledge and work together to improve the software.

The Open Source Ecosystem refers to the interconnected network of projects, communities, tools, and resources that exist within the realm of open source software development. Open source software is software that is released with a license that allows users to view, modify, and distribute the source code freely. The open source ecosystem promotes collaboration, transparency, and community-driven development.

The key components of Open Source Ecosystem include:

  1. Open Source Projects: Open Source Projects are software projects that are developed and distributed under licenses that allow users to view, modify, and distribute the source code freely.

  2. Open Source Communities: Open Source Communities are online forums where users can share their knowledge, learn and interact with each other. The forums like StackOverflow, Reddit, and Linux Journey are some of the most popular Open Source Communities.

  3. Open Source Tools: Open Source Tools are software tools that are developed and distributed under licenses that allow users to view, modify, and distribute the source code freely. The tools like GitHub, Git, and Linux are some of the most popular Open Source Tools.

  4. Open Source Resources: Open Source Resources are websites, books, and other resources that are freely available online. The resources like Wikipedia, FreeCodeCamp, and Linux Journey are some of the most popular Open Source Resources.

  5. Open Source Licenses: Open Source Licenses are licenses that allow users to view, modify, and distribute the source code freely.

  6. Open Source Philosophy: Open Source Philosophy is a set of principles that guide the development of Open Source Software.

Open Source Ecosystem fosters collaboration, innovation, and the democratization of software development. It enables developers from around the world to contribute to projects, learn from others, and build upon existing code to create high-quality software that is accessible to all.

About

This repository contains git and Github workshop for Gandaki University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published