Search This Blog

Showing posts with label git on windows. Show all posts
Showing posts with label git on windows. Show all posts

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