As a hardware developer, GitHub is one of the tools you will be using most often to share code with the hardware community and beyond, and it's important you know how to use it. So, if you are new to git and not familiar with the necessary git commands to publish your project on GitHub, relax and follow this article.
This article would guide you on how to create repository in your computer and publish it to GitHub account without using any git command line tool.
To start with, you need to download GitHub Desktop, and install in your computer. If you don't have GitHub account, you need to create one.
Add GitHub Account to GitHub DesktopAfter creating an account on GitHub, you need to add the account to GitHub Desktop. To do that, double click the GitHub Desktop icon on your desktop to open it, and make sure your computer is connected to Internet.
As showing in the image above, go to File on the menu bar and select"Options...", an "Options" window will open.
On the "Accounts" tab of the options window, where you have "Sign in to your GitHuh.com account to access your repositories, click the "Sign in" button. A Sign in window will open.
Enter your username or email address and password on the "Sign in" window and click "sign in" button to sign in to your GitHub account.
Create GitHub Repository in Your ComputerTo create GitHub repository in your computer follow this step:
- Goto File >> New Repository, "Create a new repository" will open
- Enter the name of your repository and describe your repository
- Choose the local path for your repository
- Check Initialize this repository with a README
- Select the license if applicable
- Click the "Create repository" button
You have successfully create GitHub repository on your computer, next is to add folder and file to the repository.
Add Folder and File to RepositoryAfter you finished creating the repository in your computer, the current repository on your GitHub Desktop will be the one you just created.
On the main window of the GitHub Desktop at where you has "No local changes would you like to open this repository in Explorer?" Click on the blue text "open this repository", to open your repository in an explorer. Now, you can drag and drop or copy and paste your projects folder or file into the explorer. After this, you need to commit the added files to master.
To commit your file(s), you need to write your committing message on the "Summary text box" on the left pane of the GitHub Desktop.
And then click "commit to master" to commit your file(s) to the GitHub repository in your computer. The repository is not online yet, you need to publish it.
Publish Repository from Computer to Github AccountTo publish your repository is simple, just click the "Publish repository".
"Publish repository" window will open.
- Name your repository
- Describe your repository
- Unchecked "Keep this code private" if you want to make it public
- Click the "Publish repository" button
Your file(s) will be upload to GitHub, this may take a few second or minute depending on the size of your repository. When your repository is successfully publish to GitHub, to see your repository login to the GitHub account you add to GitHub Desktop.
ConclusionNow, you can create and publish your project from your local computer to GitHub account without using the git command line tool. cheer!
Your comment is welcome.
Comments
Please log in or sign up to comment.