GitHub Tutorial

How To Upload Project on Github Public Repository




In this video, you will learn the difference between git and GitHub, also how you can create a repository and upload projects on Github This video describes:-

  1. GitHub tutorial
  2. How to Make The Public Repository
  3. How to Upload Files on Github
  4. Git push



What is GitHub?

GitHub is a web-based interface that uses Git, the open source version control software that lets multiple people make separate changes to web pages at the same time. As Carpenter notes, because it allows for real-time collaboration, GitHub encourages teams to work together to build and edit their site content.

What is Git?

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.



Here is how you would do it in Windows:

  1. If you don’t have Git installed, see this article on how to set it up.
  2. Open up a Windows command prompt.
  3. Change into the directory where your source code is located in the command prompt.
  4. First, create a new repository in this directory git init. This will say “Initialized empty git repository in ….git” (... is the path).
  5. Now you need to tell Git about your files by adding them to your repository. Do this with git add filename. If you want to add all your files, you can do git add .
  6. Now that you have added your files and made your changes, you need to commit your changes so Git can track them. Type git commit -m "adding files"-m lets you add the commit message in line.




So far, the above steps is what you would do even if you were not using GitHub. They are the normal steps to start a Git repository. Remember that Git is distributed (decentralized), meaning you don’t need to have a “central server” (or even a network connection), to use Git. Now you want to push the changes to your Git repository hosted with GitHub. You do this by telling Git to add a remote location, and you do that with this command

FOLLOW US ON

Youtube 
Facebook
Instagram
Pinterest
Contact us