Search This Blog

Sunday, March 6, 2016

how to use github

Open git bash - if on windows

Create a folder where you want to have your local repository.

$ git init // will create a .git file

$git config --global user.name "username"

$git config --global user.email "xxx@gmail.com"

$echo "# gold" >> README.md

$git init
$git add README.md
$git commit -m "first commit"
$git remote add origin https://github.com/username/gold.git

git push -u origin master




1 comment:

  1. to clone a public repot git clone repourl later convert to eclipse compatible with mvn eclipse:eclipse

    ReplyDelete