How to Upload Cordova Project to Github
A lot of students ask questions about open source. What is open source, how tin I contribute to it? Is information technology helpful if I contribute to open source, and the listing goes on relevant to "Open up Source".
So what is open source???
Co-ordinate to opensource.com, The term "open up-source" refers to something people tin can alter and share considering its design is publicly attainable.
The term originated in the context of software evolution to designate a specific approach to creating computer programs. Today, however, "open up-source" designates a broader gear up of values — what we call "the open source way." Open up source projects, products, or initiatives embrace and gloat principles of open exchange, collaborative participation, rapid prototyping, transparency, meritocracy, and community-oriented evolution. i.due east., "open up-source is what is free to admission past all. Anyone can change and distribute its ain model".
There are and then many blogs bachelor on the cyberspace to learn near open source, software, and their importance. The nigh common and widely used platform to use for open source is Git and GitHub.
The purpose of Git is to manage a projection, or a set of files, as they change over time. Git stores this information in a data construction chosen a repository. A git repository contains, among other things, the following: A set of commit objects.
GitHub is a Git repository hosting service, merely it adds many of its own features. While Git is a command-line tool, GitHub provides a Web-based graphical interface. Information technology besides provides access control and several collaboration features, such every bit wikis and bones task management tools for every project.
Let's discuss some command used in git to push, pull, commit and do changes to your GitHub repository.
- Kickoff, install Git from the official site https://git-scm.com/downloads and install it in your PC so after creating your profile on Github https://github.com, make a repository and clone (copy the link of your repository) your repository with HTTPS.
- Now go to Git Bash software and apply this command to clone this repository to your PC.
git clone [your re-create link]
- Git Bash don't use ctrl+Five to paste any segment so paste your link by using shift+Ins key
- Now you have cloned your Github repository to your system now add all you relevant codes in that cloned directory to upload it to your GitHub Profile.
- At present when you lot volition type control git status you will see all those files you take added to the directory in scarlet-colored untracked file segment similar this. Here laddu.txt is the unracked file that I have merely moved to the directory.
- Now to add together these files into staging area (Staging is a pace before the commit procedure in git. That is, a commit in git is performed in two steps: staging and actually commit. As long as a changeset is in the staging area, git allows you to edit information technology as you like to supersede staged files with other versions of staged files, remove changes from staging, etc.) utilise command
git add <files_Name with their corresponding extensions>
- Here you tin see that now your files are successfully added to the staging area. At present you need to commit these files with a description. And to do so apply
git commit -m "Your clarification"
- Now we accept committed these changes in our local system and to upload these changes to our remote contour employ command
git remote -5
- Great, Now just 1 step left this is to push these changes in our Github repository. Utilise the command below to upload your files or whatever changes.
git push origin primary
Great You have successfully uploaded your files to your GitHub repository.
All the files and directories are uploaded to your Github account. Now you tin manage, revert, access or practise any changes in your repositories similar this.
Source: https://www.geeksforgeeks.org/how-to-upload-a-project-on-github/
0 Response to "How to Upload Cordova Project to Github"
Post a Comment