Comments on Installing and using Git and GitHub on Ubuntu Linux: A beginner's guide

This tutorial is a quick setup guide for installing and using GitHub and how to perform its various functions of creating a repository locally, connecting this repo to the remote host that contains your project (where everyone can see), committing the changes and finally pushing all the content in the local system to GitHub.

128 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: nwnpallewela

This is great... Thanks for your help :)

 

By: Feragon

Thanks a LOT!!! Very usefull tuto, and very simple. Thanks again.

By: Deepak Kanavikar

This was precisely what i was looking for... Thanks

By: ashutoshh

thanks a lot

By: honlulu

<h1> very helpful xD Thanks a lot </h1>

By: karan

awesome , thank you

By: Chris

Thank you!

By: auchomage

Thanks for this, it is very clear and helpful.

By: vartika

thank you very much for such a clear and concise tutorial! :)

By: AlFoNsO_O_BEST

is a question possible?

after following the guide does everything work? and if so are you daughter of god for making it work?

By: saurabh

Thanks a lot, really very helpful.

By: Rajani

Very helpful. Thank you very much

By: Kishor

Best..

By: goldie

awesome... spent so much time but did not get... but with this tutorial... its really easy.. thank u

By: jeet

awesome easy to understand.....

By: swayne

Very nice, concise beginners tutorial!  FYI... one little typo found... In section 5: git add smaple.c  (should be "sample.c")

By: maitreyee

Extremely helpful. I followed it step by step and I got exactly what I wanted

 

By: Jerry

Bravo!!!

By: neil

Awesome 

By: Bilal

Thank you so much

By: Bilal

one more thing friends, suppose someone get any issue in  git push origin master

please use this git push origin master --force its work for me

By: jorge8979787

thanks!

By: Luna Das

nice article that what I was looking for :)

By: Murat Ersin

It's work so great.Thanks for this tutorial.

By: om

This is very cool tuto, love it.

By: Chichio

Thanks. But i must run command: git pull origin master before git push origin masterI'm newbie

By: Chatchai Saratakij

Wow, Thank you^_^

By: luan

how to integrate postgresql to github? 

By: Shradha

Thank you so much..This is the most precisely explained tutorial...:)

By: Kautsya Kanu

Best Tutorial that I found.. Thanks a lot!! :) You are really great..

By: yohannes

Thanks that will help for starters like me.

 

By: Jacob

 This was great, but I initially received a error when I tried the git push origin master. 

The error looks something like this: fatal: unable to access 'https://github.gatech.edu/jc89x0/SevFiewk.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I believe it is a certificate trust issue, but the fix for me was to enter the following commands (ref: http://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c)

export GIT_SSL_NO_VERIFY=1 #or git config --global http.sslverify falseAfterwards, I am presented with an option to provide my username and password.   

By: Shashikant Singh

Very good tutorial . Very clean explaination. 

By: Devashish Kumar Jaiswal

Thanks a lot..This is very helpful for everyone

By: Tingu

Nice One Article

 

By: Tingu

 Masaalla article

By: Zakki

Excellent tuto!

By: Graham Newman

Brilliant - many thanks!

By: Ravi Kumar

That's great...Thankyou sir

By: Ishadi

Thanks a lot!

By: subhajyoti

too good

By: Nisal

This is great... Thanks for your help :)

By: Kevin

That's amazing. The best hands on beginner's guide to git. It isn't much of a big deal. Thanks

By: Nikhil Chavda

this tutorial is very usefull for me thank you so much.

By: ahahah

This was soooo helpfull. Thank you soooo much. :))

By: Victor

Thanks for this , I never thought it was so simple, you helpme so much

By: WRONG!

remote add orgin, not add remote origin

By: Irishologram

I just followed this tutorial and create a new github repository, thank you!

By: KC

Thank You! This has been of real help.

By: murali

Thanks for the usefull information....

By: Shrikrishna

Thanks mate exellent article.

By: Eslam Ezzatneshan

Hi,

Thanks for this helpful article.

I am trying to install the following open-source package on my virtual-box Ubuntu:https://github.com/Par4All/par4allTo be honest, I am almost new in Ubuntu and don't know so much about git etc.Could you please help me what should I do step-by-step to install that package? Really appreciate your time. Cheers

Eslam

By: Shivam

This is simply helpful.. Can you also cover for rest ??

By: nullbyte

Thanks a lot.

By: annie

Too good!

By: Sagar PAtil

Great man cool article. Very easy and clear steps provided.

By: Zachary

Basic but very important! Great!

By: Alok Patra

Great detailed explanation. Helped a lot. Thanks

By: martineskobg

Cool Thanks !! :)

By: p81061473525

This is great...

By: Jona

SO EASY!!!!!!

By: Antz411

Excellent work!

By: Umer

Many thanks for this wonderful how-to...cheers :)

By: Manjesh

Dude, Your Tutorials are Awesome .

By: Ajay

Thanks  

Steps is fine but if some one want to add all directory  can use

git add .

command 

before doing this change mode of file if required

 

Thanks

By: Wayne B

Hello, very easy and simple instructions for us noobs. Thank You very much for this simple and easy to understand tutorial!

By: vishnu

Thanks very useful 

By: anvesh

Thanks bro

By: MX1

Verry cool. Thanks for the awesome tutorial. Helps me get a jump start on installing the new Cuda tool kit on all my machines. Thanks again awesome!

By: prasad

very good.

By: pk

This is great help! thanks

By: John

Great teaching.

By: dhanyesh

Its very useful and effective. Easy to use it

By: rano

Unable to push. NO enter login credentials prompted after running git push origin master.

fatal: unable to access 'https://github.com/myusername/myproject.git/': Failed to connect to 127.0.0.1 port 8888: Connection refused

By: bluescreen777

Thank you for the help!

By: Sravan Chithari

Best article and very helpful :)

By: Mike Paget

Good job! i like it

By: mikesmith123456

thank you, thank you thank you.

By: Tasos

Dude, you are the only one who managed to put an actual useful guide for first time users. Thanks a lot!

By: Brandon

Perfect tutorial, thank you so much!

By: Freddy Camacho

Hi, Do you have a tutorial on how to install FROM GitHub via terminal? Thank you

By: Ravi yadav

Thanks.....this is a great guide for beginners :)))

 

By: Darichy

Thats awesome, thanks

By: Ceero

Thanks for this. It was truly helpful

By: Thanku

Thank you so much bro

By: musaah

hello anyone here please i need help

By: Froot

Yes this is ok, Thanks.

By: Zac

Thank you so much. OMFG

By: gaurav agarwal

Reading package lists... Done Building dependency tree Reading state information... Done Package git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'git' has no installation candidate this is the result what should iI do ?

By: Ludwig

Great guide! Thank you very much!

By: Anon

Very useful, thanks.

By: dnah

thank you a lot

By: Vikram Chaudhary

Thank you the detailed explanation. It really helped.

By: Abhishek Sharma

fatal: remote origin already exists.

this is what i get after 

 git remote add origin https://github.com/Abhishek-Shr/Mytest.git

this 

what shoud i do?

By: Abhishek Sharma

error: src refspec master does not match any.

error: failed to push some refs to 'https://github.com/Abhishek-Shr/Mytest.git'

What is this?

By: Kumar Vivek

Hi I did all the steps but after step 8th "git push origin master" and after adding this command, it is showing 

Below Error

 

fatal: The current branch master has no upstream branch.

To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

Please help. 

By: eve

Unable to push - I guess its because I have activated the 2 -step security

it ask for username and password. But said it fails: 

remote: Invalid username or password.

fatal: Authentication failed for 'https://github.com/evezeyl/personal.git/'

But it never ask for the second step of the authentification. Any solution?

Best regards, great guide. Thanks!

By: sasnasteve

Excellent, thanks!!

By: sm1km

The git push command doesn't work if you have 2FA enabled. If you have it, you have to disable two-factor authentication or create a Personal Access Token (see https://stackoverflow.com/questions/29297154/github-invalid-username-or-password)

Great guide btw!

By: Karthikeyan

Thanks for your tutorial..Great help for me..

By: ekowahyudisetiawan

thank you, amazing

By: Ethan

Great tutorial, minor typo in 'git add smaple.c'

By: till

Fixed the typo. Thank you for the hint.

By: Mohammad

very nice, worked for me. Thanks.

By: Aravind

very helpful

By: Gautam Helange

Thank you so much. 

By: Moses

Thanks alot, this really helped...

By: Lamu

This has been my first ever successful git commit I've done without a third person..ONLY you and me

By: Raj

Quick and useful intro to using git. Thanks.

By: vijay kumar

you are awesome for explaining step by step for beginners.

By: Shasank

Too good tutorial. Had just to follow steps and then we are done. Thank you very much for this tutorial.

By: dingdong69

starting with web dev;

thanks 4 d tutorial;

gr8 n very helpful;

By: Jhon Gesell Villanueva Portella

Gracias por compartir la presente entrada, me ha gustado mucho la explicación que han compartido, muy claro todo, saludos desde Lima-Perú.

By: Carmen

This tutorial really help me.. Thank you so much!

By: Ahmadun Nabi

How can I update a file in github? OrA file is already in github, after editing that file how can I push that into github??

By: Socrates

Good job, thanks for your tutorial. Helped me to introduce the procedures in my mind.

By: thomas

Thanks, helps a lot

By: bagusdewantoro

Thanks! great tutorial, very simple. really save my day

By: Kasturi

 Thanks a lottttttttt very much

By: deniz

Your help saved my day:))

By: haicle

Thanks for a short and sweet git tutorial !

By: Tony Nguyen

Year! It worked! Thank you a lot!

By: Tom Dings

Works awesome! Just created this one : https://github.com/MrCoding/HeskPlugin

By: Chang Jeon

Very helpful to catch up thanks to your guide. Thank you so much. 

By: amin

thanks

By: arslion

github not allowing users to use password anymore. You need to use Personal access tokens for this instead of password.

By: aarvens

Great write-up, thanks! Please update it now that GitHub requires at least personal access tokens to push repos from CLI.

By: Example

Why are you using a probably existing email address of gmail.com as an example? There are domains like example.com that are exclusivly reserved for examples.