Using GitHub

test-in-github-change

GitHub Apps Interfaced

GitHub’s desktop app is available for Windows and Mac. This statement is based on these two versions.

Let me put it this way from the beginning. The most painful github usage is through the console. My advice is always or whenever possible to use GitHub through Terminal. Once you find out, you’ll be very comfortable and face fewer mistakes. It is especially my strong advice to Mac and Linux users.

GitHub for Mac/Windows

Goto the GitHub homepage and create your account by saying “Sign Up”. According to your operating system,by pressing the GitHub for Mac and GitHub for Windows download buttons . zip file. You can complete the installation by performing the classic installation steps for Mac and Windows.

First of all, let’s start by creating a warehouse repository. You will manage your different projects with the warehouses you will create. A project usually has a repository. Underneath, each application has separate folders. Although it is entirely up to you how this structure will be, I recommend that you still maintain a certain layout, together with folders.

githubdownload

 

Creating a Repository on GitHub

On GitHub, you can do a lot of things both from the desktop app and through the website. However, I will tell you which of the articles it may be easier and headache-less to do where.

 

GitHub’da Roles

Before you tell us how to create your own repository, let’s talk about roles on GitHub. GitHub usually has Admin and Contributer, as with any system. Having a manager of a warehouse will be in place, especially if it is not a large project. The number of participants can be hundreds, thousands.

The manager of the warehouse; is the one who creates the repository, sets the rules, observes all the changes and makes the final decision. The participants were; they can contribute on all code, unless otherwise determined by the administrator. They submit these contributions in requests Details will be discussed below.

If you are going to create a repository, the simplest way is to create it on the web side.

Go to Github.com and sign in with your account. Your own page will naturally come blank, unless you’ve created any repository or contributed to other projects. All you have to do is press the plus button at the top right and then click on the “New repository”link.

newrepo

Then, on the screen that opens, enter the name of your repository and, if possible, make a note underneath the description. If you are going to keep your codes open source, select “Public” and “Private” if you want to keep them private.

create repo name

You can create an unlimited number of stores as open source and publish as many applications as you want. Confidentially, you only have one right, but the student tariff and other package fees are also available here.

One of the most important points here is that GitHub would love to have readme files for every repository and application. Sodefinitely check the “initialize this repository with a readme” option, then we will fill in its contents.

In the options just below them, you can choose what you’re coding about usually GitHub will already automatically detect when you upload your code and the licensing model you want to publish, if any.

Then you’ll find an empty warehouse. I created a repository called Test as an example.

emptyrepo

Here you can also write the necessary information in some empty sections, website, etc.

Now we go back to the desktop app.

let’s open GitHub for Mac or Windows:

Note: There are differences between mac and Windows versions between visuals, but the function sets are the same.

When we press the plus button in the upper left corner of the application, it will offer usto create a new warehouse withthe “Create” tab orclon an existing repository with the ” Clone” tab. If we are going to contribute to a repository or manage it from the desktop app for the first time as a manager, we need to clone that repository once. When we press the “Clone” tab, we will see our previously created warehouse called “test”. By selecting itwe click on the “Clone Repository” button at thebottom.

clone

It will ask where we want to clone it on OS X or in Windows Explorer. My advice is to create a folder on your computer called GitHub and select it. Thenpress the “Clone” button to clone the corresponding repository to your computer and, of course, to your desktop GitHub app at the same time.

clone

In the picture below you will see from other names, since it is in warehouses that I have previously owned, in the left column. However, when you add a new repository, your “test” repository will be created under the GitHub folder, as in the picture below.

test on the left

But the most important thing to check is Open the Finder or Windows Explorer and look inside the GitHub folder that you created. If there is a folder named “test”, the operation is complete. It is normal to have a readme file in it, we selected this option when creating on the web side. Everything’s fine.

It’s very unlikely that you’ll make any mistakes so far. I hope things went well.

From now on, things will go on too easily. If you have an application with source code ready, all you have to do is copy the corresponding folder here, no matter where it is on your computer. For example, I copy my Webview app on the desktop to the “test” folder under the drag-and-drop GitHub folder:

copygithubfile

As soon as you copy any file or folder to that store, these changes will appear in the GitHub app:

test in github change

 

It’s the first time we’ve thrown out a file, so it’s all displayed as “New.” After this stage, all youhave to do is write a summary of the change you have madeand type “Commit & Sync”.

If you don’t want your change to sync at the same time, in the relevant repository, just send it with the “Commit” option:

The tabs at the top show changes to related files named “History”, who made them to what times and on which lines, and any errors can also be undone by the manager of the repository.

The sync button in the upper-right corner of the app syncs the latest developments in your repository on its name.

As an administrator, all you have to do next is keep your app up to date and sync it to GitHub continuously, if you have any. The GitHub app reads all the changes from within this folder on your computer and offers you the app. After you run your project under the relevant folder, youcan save it Save and then open the GitHub appto “Commit”. This updates in the repository and everyone can see it instantly.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.