Skip to content

FOSS-UCSC/Git-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

How Contribute for a Github Repository

Step 1:

Download and Install Git

Step 2: fork

  1. Go to the Demo Repository
  2. Click on the fork button

Step 3: clone

  1. Now you need a copy locally in your account, so find the “SSH clone URL” in the right hand column and copy the link

  1. Now open git bash and go to the folder where you need to create your local repository

ex -:

cd ~/Desktop

  1. Then type clone command as below with the copied link of the repository

git clone https://github.com/FOSS-UCSC/demo

Step 4:

Do some work

Example: Write your name on a text file and save it as yourname.txt

Step 5:

Create a new Branch with your name

git checkout -b yourname

Step 6:

Push your work to github

git add .

git commit -am "I wrote my name"

git push origin branchname


Some Basic Details

Fork

Get a copy of a repository from an account of someone else to your account.

Clone

Get a copy of a repository from your github account to your local machine.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •