Thursday, November 29, 2018

Installing and using Git and GitHub on Ubuntu

How To install git hub on your Ubuntu

Goto terminal and type sudo apt-get install git

Configuring GitHub 

After installation type
git config --global user.name "github_user_name"
press Enter 
then type
git config --global user.email "github_your_email_Id"
press Enter

Create a local repository 

 Create a local repository and open with terminal

Add a file 

In your terminal after configuring type the code
git add filename with file type 

If you want add all files in your git hub add . or add *

How commit with GitHub

 After add a file type git commit -m "Type your some message"

Create a repository on GitHub


 

After type git remote add origin your_repository url 

Pushing Files in GitHub  

After type 
git push -u origin master  

Check Remote

In terminal type git remote -v

No comments:

Post a Comment