The meaning of life is to explore the world

Review of the GitHub procedure

Posted on By Jason Liu

Summary:

:: From local repo to GitHub:
:: 1.Create repository manually on github.com
:: 2.Create locally and push to the remote repository
echo "# my source" >> README.md
git init
git add README.md
git commit -m "first commit"
::(git remote remove origin)
::HTTP:
	git remote add origin https://github.com/jasonmccb/myblog_Jekyll_source.git
::SSH: (needs to set up SSH RSA key)
	git remote add origin git@github.com:jasonmccb/myblog_Jekyll_source.git
git remote -v
git pull origin master --allow-unrelated-histories
git push -u origin master


:: From GitHub to local repo:
git clone https://github.com/jasonmccb/<repository_name>.git <local_folder_name>