How to Upload an Entire Project on Github
A lot of students enquire questions most open source. What is open source, how can I contribute to information technology? Is information technology helpful if I contribute to open source, and the list goes on relevant to "Open Source".
So what is open source???
Co-ordinate to opensource.com, The term "open-source" refers to something people can alter and share because its design is publicly accessible.
The term originated in the context of software development to designate a specific approach to creating computer programs. Today, all the same, "open-source" designates a broader set of values — what we telephone call "the open source way." Open source projects, products, or initiatives embrace and celebrate principles of open up substitution, collaborative participation, rapid prototyping, transparency, meritocracy, and customs-oriented development. i.e., "open-source is what is free to access by all. Anyone tin change and distribute its own model".
There are so many blogs bachelor on the internet to acquire nigh open source, software, and their importance. The most common and widely used platform to use for open up source is Git and GitHub.
The purpose of Git is to manage a project, or a set of files, as they change over time. Git stores this information in a data construction called a repository. A git repository contains, among other things, the following: A fix of commit objects.
GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command-line tool, GitHub provides a Web-based graphical interface. It also provides access command and several collaboration features, such as wikis and basic chore management tools for every project.
Let's discuss some command used in git to push, pull, commit and do changes to your GitHub repository.
- First, install Git from the official site https://git-scm.com/downloads and install it in your PC and then after creating your contour on Github https://github.com, brand a repository and clone (re-create the link of your repository) your repository with HTTPS.
- Now go to Git Bash software and utilise this command to clone this repository to your PC.
git clone [your copy link]
- Git Bash don't use ctrl+5 to paste any segment and then paste your link by using shift+Ins key
- Now you take cloned your Github repository to your system at present add all y'all relevant codes in that cloned directory to upload it to your GitHub Profile.
- Now when you volition type command git condition you will run into all those files you have added to the directory in ruby-red-colored untracked file segment like this. Here laddu.txt is the unracked file that I have but moved to the directory.
- Now to add together these files into staging surface area (Staging is a footstep earlier the commit process in git. That is, a commit in git is performed in ii steps: staging and actually commit. As long as a changeset is in the staging area, git allows yous to edit information technology as you similar to replace staged files with other versions of staged files, remove changes from staging, etc.) employ command
git add <files_Name with their respective extensions>
- Hither you lot can meet that now your files are successfully added to the staging area. Now you need to commit these files with a description. And to practice so utilize
git commit -grand "Your description"
- Now we take committed these changes in our local system and to upload these changes to our remote profile utilize command
git remote -v
- Smashing, Now just ane step left this is to push these changes in our Github repository. Use the command beneath to upload your files or whatsoever changes.
git push origin master
Great You have successfully uploaded your files to your GitHub repository.
All the files and directories are uploaded to your Github account. At present y'all can manage, revert, access or do whatsoever changes in your repositories similar this.
Source: https://www.geeksforgeeks.org/how-to-upload-a-project-on-github/
0 Response to "How to Upload an Entire Project on Github"
Post a Comment