How to Upload Code From Desktop to Github

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Background

Software development is all about writing code and developing solutions following requirements and processes. Managing lawmaking becomes circuitous with time and multiple contributors. In the real scenario, multiple developers work on the aforementioned project and write code on a daily basis. Tracking changes and merging those codes are hassle and time-consuming without whatsoever proper tools or platforms. Another outcome is rollback which is non possible without using any version control tools. When it comes to writing code, source code direction is another of import gene to consider. Source code management is not only only storing the code safely but also tracking the changes, resolving the conflicts, and merging from multiple contributors.

In that location are several tools and platforms bachelor for source code management with exclusive features.

In this article, I will elaborate on GitHub, one of the nigh used, cloud-based open up-source communities to manage your source lawmaking plus extensive features with git repositories. In this article, I will cover the post-obit points.

  • What is Git
  • What is GitHub
  • What is GitHub Desktop
  • Installation and Hallmark of GitHub desktop
  • How to create a Git repository
  • Add together a new project to the repository
  • Add an existing projection to the repository
  • Make and commit changes to the project

In this article, I will explicate Git, GitHub, and GitHub desktop. Furthermore, I volition be doing easily-on past creating a git repository, adding a projection, doing the changes, and commit using GUI GitHub desktop without any control.

What is Git

Git is a version control system for managing the source code which keeps the track of it with many options. Basically, information technology is software to track the changes of files more often than not used for coders to work collaboratively and source lawmaking management during the software development.

As per Git-SCM (https://git-scm.com/)

Git is a gratuitous and open-source distributed version control system designed to handle everything from minor to very large projects with speed and efficiency.

Git is piece of cake to acquire and has a tiny footprint with lightning-fast performance. It outclasses SCM tools similar Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

If you want to go in depth of Git, delight check the link below,

https://git-scm.com/volume/en/v2

What is GitHub

In simple terms, GitHub is the unmarried largest deject-based hosting service for managing git repositories which offer a wide range of functionality for source code management and version control likewise equally its own features. The best matter about GitHub is that it is completely free. You tin can create individual as well public repositories with GitHub without any cost with some conditions. It is widely used to host open up-source projects. As of now, GitHub's costless program allows the creation of unlimited private repositories with unlimited collaborators, even so, there is a restriction of Git Actions up to 2000 minutes for those private repositories per month.

Along with Git, GitHub provides its own features similar bug tracking, task direction, code review, continuous integration/continuous deployment, as well other features which make this platform more than useful and interactive professionally.

Y'all can explore more on GitHub from this link: https://docs.github.com/en

What is GitHub Desktop

GitHub Desktop is an awarding that enables GUI-based interaction with GitHub. Git provides a broad range of commands for Git activities like creating repositories, commits, pull requests, and so on. However, GitHub desktop provides GUI-based those activities using all-time practices with Git and GitHub. We can use GitHub desktop to practice about of the Git commands with UI and clicks which makes collaboration and working with Git more flexible. You can connect to your account, create git repositories, add projects, practice the changes, and commit hands with the interface. I will be doing hands-on with the GitHub desk in this article.

Know more about GitHub desktop: https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/getting-started-with-github-desktop

GitHub Desktop is bachelor for both Windows and macOS.

Link to download GitHub desktop: https://desktop.github.com/

Installation and Authentication of GitHub desktop

This is straightforward. We can download the setup file from the above link. Nosotros tin install GitHub desktop in Windows 7 64 bit or afterward and macOS 10.x r after.

Pace i

Download the packet based on your OS. I will demonstrate with the Windows version.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Step 2

Double click the downloaded setup file and go on the setup.

Once the setup is completed, the GitHub desktop will launch.

You lot can authentication deeply with your account and access the resources from the GitHub desktop.

Open GitHub Desktop.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Click File and Options equally shown above.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

How to Create a Git Repository in GitHub

In this section, nosotros volition create a new Git repository in GitHub using GitHub desktop.

ClickFile in GitHub desktop as portrayed

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We will get an selection to create a new repository which is shown. Additionally, at that place are other options similar calculation a local repository, clone repository.

Nosotros will selectNew Repository.

Then we volition get the following options for creating a Git repository.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We will enter the following data,

Name: Name of Git Repository. In my case name is Demo-GitHub

Clarification: Nosotros tin can small description of this repository as shown

Local Path: We demand to choose a local path for this repository where the actual project will be stored locally.

Initialize this repository with a README: this is an option to add together a readme file. I recommend adding this file for every projection every bit nosotros tin can have details of the projection, changes, versions as so on.

Git ignore: This selection will add together ignore to this repository. Yous can choose the file type which you lot want to ignore equally shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

License: You can choose a license for this repository. I volition be choosing the MIT license.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Subsequently entering those values, we volition click create a repository.

In one case you click the create repository, we volition our GitHub desktop as shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We can detect the following things from the UI.

  • Current repository as Demo-GitHub
  • Electric current Co-operative – Chief
  • Commit option
  • Publish your repository to GitHub.

Nosotros will initiate with publish repository by click on it as shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Later clicking on the Publish repository, nosotros volition get the following options equally depicted.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We will have an selection to choose GitHub.com or Enterprise. Here, we are using a free 1, GitHub.com. We will provide the following information.

  • Name: This will exist the proper name of the Git repository in GitHub.com
  • Description
  • Proceed this code private: A checkbox is to make this Git repository private or public. I will exist keeping this repository public; therefore, I volition uncheck this.

Once nosotros click Publish repository, finally, the repository is created in GitHub every bit shown,

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Nosotros accept successfully created a Git repository in GitHub using GitHub desktop. This is how nosotros create a Git repository in GitHub using GitHub desktop application without writing whatsoever command.

Add a new or existing project in the repository

This is also straightforward. We can create a new project or add an existing project to our local repository location equally shown,

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Then local repository binder will be opened.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

In this regard, I will create a new projection in the same location, we can add the project to the GitHub repository. Let the states create an asp.net core project in visual studio as shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

I will apply the aforementioned local repository location and cheque the option toPlace the solution and projection in the same directory.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We have successfully created a demo project.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

One time the projection is created successfully, nosotros go back to GitHub Desktop. We will find all the files of the above projection in the changes list of GitHub desktop as illustrated.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Now we tin can add a comment for the changes and click commit.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

I will commit this as it is. Still, if you lot want you tin uncheck files or folders which you are willing to discard the changes.

After commit, we volition see the below screen to push the commits to the origin remote.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We can see thatone commit is waiting to be pushed to GitHub. Up to now, we have committed the changes to the local repository only.

Next, we volition click thePush Origin to button the projection to GitHub Online. Correct after clicking, the GitHub desktop volition startpushing to the origin, GitHub.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Finally, we have added the project to GitHub and committed. We can see the project on the GitHub site as shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

Thanks! Nosotros have successfully created a Git repository and added a project to the Git in GitHub using GitHub desktop. Hither, we accept used GUI based GitHub desktop for Git Actions without any command.

Similarly, we can add together existing projects to the Git repository in GitHub as I have done for the new project. Nosotros can copy and paste the existing project to that location and check the changes in GitHub desktop.

Brand and commit changes to the project

Next, we volition practise some changes in the project files and commit the changes using GitHub Desktop. I will simply modify the index page of the project, so we volition run across the changes in GitHub desktop. Instantly, we volition run into the changes listing in GitHub desktop as shown.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

GitHub desktop is so intelligent that it indicates the changes likewise. Isn't it amazing?

Next, we volition push to the origin.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

We will push the changes to GitHub and check in GitHub.com.

Easy Way To Create GitHub Repository And Add New Or Existing Project Using GitHub Desktop

The changes are committed to the repository in GitHub.

This is how we tin can promptly commit those changes into GitHub.com using GitHub desktop.

Conclusion

In this article, I accept explained source lawmaking management and version command. I have also elucidated virtually Git which is a software for distributed version command, and GitHub which is a cloud-based hosting service for managing Git repositories. Furthermore, I have described GitHub desktop which is a GUI-based interaction with GitHub for Git Actions. Additionally, I take shown installation and authentication steps. Additionally, I have created a Git repository, added a new project in GitHub using GitHub desktop without any command. Finally, I have fabricated some changes and committed to the Git repository in GitHub. I have performed all those actions using GitHub desktop without whatsoever command.

alexanderyousaity1990.blogspot.com

Source: https://www.c-sharpcorner.com/article/create-github-repository-and-add-newexisting-project-using-github-desktop/

0 Response to "How to Upload Code From Desktop to Github"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel