CodeSamplez.com

Programming, Web development, Cloud Technologies

  • Facebook
  • Google+
  • RSS
  • Twitter
  • Home
  • Featured
    • C# Tutorials
      • LinQ Tutorials
      • Facebook C# API Tutorials
    • PHP Tutorials
      • CodeIgniter Tutorials
    • Amazon AWS Tutorials
  • Categories
    • Programming
    • Development
    • Database
    • Web Server
    • Source Control
    • Management
    • Project
  • About
  • Write
  • Contact
Home Source Control Github As Your Online GIT Repository

Github As Your Online GIT Repository

Rana Ahsan December 31, 2010 Leave a Comment


 Github As Your Online GIT Repository    

I have already discussed about how to get started with git. After you know the basics, you might want to start your projects and may be finding a suitable git repository hosting for your project online. With very much confidence, I will suggest you to use github(I already mentioned about it on the previous article on reference section). This is currently the only one champion in git hosting. Others, which are exist, comparatively nothing. Here, I will show you including command line examples on how you can proceed with github.

Beginning with Github:

First, Register an get a account on github. You will come to know that, view here and understand that there are two kind of strategy to host your project there. One is free, you can host unlimited projects. But, those will be public, that means, anyone can get source code of those projects. This option is very good for open source projects and many renowned companies use github to host their official open source api projects. You could also consider Hostens for hosting services.

Create Repository And Verify Your Identity:

Although it is possible to create repository with command line argument, here won’t need this actually. Go with the easier way. On your ‘Dashboard’ tab on your github account, you will see an anchor link option with text ‘Create a Repository’, go with it. There you will have to enter the project name, and additionally you may enter description and homepage also(optional).

Now, you will have to verify your identity to github that you are the right owner of the account. For that, open your computer’s ‘Git Bash’ tool and use the following commands:

$ ssh-keygen -t rsa -C "yourgithubaccountemail@domain.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/current-directory-path):Enter Path Here
Enter passphrase (empty for no passphrase): Enter A Pass phrase
Enter same passphrase again: Confirm your pass phrase

Remember carefully to enter the only github account email as it will identify your account using that email. Moreover, If you are on the the correct directory, you can skip entering path. Also, you can skip the pass phrase part also just by hitting enter.

After completing this steps successfully, a new file named ‘id_rsa.pub’ will be created in the directory. There you will get a key. Copy that, go to your github account’s ‘Account settings’ -> ‘SSH Public Keys’ -> Add a key, then paste the key. If you see any newline appended, you will may need to remove that, otherwise authentication may not work on later. To test, back to your ‘Git Bash’, use the following commands:

$ ssh git@github.com
The authenticity of host 'github.com (XXX.XXX.XXX.XXX)' can't be established.
RSA key fingerprint is XX:XX:XX......
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,XXX.XXX.XXX.XXX' (RSA) to the list of known hosts.
ERROR: Hi yourname! You've successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.

Starting Traditional Git Commands:

After completing the above primary stage, actually, we are all done for the github specific works. Now, we can start using our tradition way to execute git commands that i have discussed on my previous post, just you will need to remember all the times that you are using an remote server and will need to take the extra care(commands) that remote git server requires.

Further References:

Here I have showed the simplest and quickest way to get things done for github, but github already has details step by step instruction. Go through them if you are having some special problems. If still you are having issues, please comment here to let me know, I will try to help out my best. Happy coding 😀

Related

Filed Under: Source Control Tagged With: git, github

About Rana Ahsan

Rana is a passionate software engineer/Technology Enthusiast.
Github: ranacseruet

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Email Subscription

Never miss any programming tutorial again.

Popular Tutorials

  • PHP HTML5 Video Streaming Tutorial
  • How To Work With JSON In Node.js / JavaScript
  • Generate HTTP Requests using c#
  • How To Work With C# Serial Port Communication
  • Facebook C# API Tutorials
  • LinQ To SQL Database Update Operations In C#
  • How To Work With CodeIgniter Pagination
  • How To Work With Multithreaded Programming In C#.NET Application
  • Get Facebook C# Api Access Token
  • How To Work With Codeigniter Caching In PHP

Recent Tutorials

  • Building Auth With JWT – Part 1
  • Document Your REST API Like A Pro
  • Understanding Golang Error Handling
  • Web Application Case Studies You Must Read
  • Getting Started With Golang Unit Testing
  • Getting Started With Big Data Analytics Pipeline
  • NodeJS Tips And Tricks For Beginners
  • Apple Push Notification Backend In NodeJS
  • Web Based Universal Language Translator, Voice/Text Messaging App
  • How To Dockerize A Multi-Container App From Scratch

Recent Comments

  • intolap on PHP HTML5 Video Streaming Tutorial
  • manishpanchal on PHP HTML5 Video Streaming Tutorial
  • Rana Ghosh on PHP HTML5 Video Streaming Tutorial
  • ld13 on Pipe Email To PHP And Parse Content
  • Daniel on PHP HTML5 Video Streaming Tutorial

Archives

Resources

  • CodeSamplez.com Demo

Tags

.net apache api audio aws c# cache cloud server codeigniter deployment doctrine facebook git github golang htaccess html5 http image java javascript linq mysql nodejs oop performance php phpmyadmin plugin process python regular expression scalability server smarty ssh tfs thread tips ubuntu unit-test utility web application wordpress wpf

Copyright © 2010 - 2021 · CodeSamplez.com ·

Copyright © 2021 · Streamline Pro Theme on Genesis Framework · WordPress · Log in