Publish project to github.com repository

Steps to Publish project to github.com repository can be found here:

https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

Complement and notice:
1 Before you implement the steps above, first you have to make a local repository by Git Gui.
local repository will contain .gitignore and .gitattributes automatically

2 You can check the fail log file when you see the message fail to publish. When it hints:failed to connect to github.com port 443 connection timed out

I solved this by
git config –global http.proxy proxy.tamk.fi:8080

When I use the internet on TAMK campus.

I search the information on this:
http://stackoverflow.com/questions/18356502/github-failed-to-connect-to-github-443-windows-failed-to-connect-to-github

e4lguoli@KA32017:/d/li/github/practicalwork$ git push -u origin master
fatal: unable to access ‘https://github.com/federerlee/practicalwork.git/’: Fail
ed to connect to github.com port 443: Timed out
e4lguoli@KA32017:/d/li/github/practicalwork$ git config –global http.proxy 127
.0.0.1:8087
e4lguoli@KA32017:/d/li/github/practicalwork$ git push -u origin master
fatal: unable to access ‘https://github.com/federerlee/practicalwork.git/’: Fail
ed to connect to 127.0.0.1 port 8087: Connection refused
e4lguoli@KA32017:/d/li/github/practicalwork$ git config –global http.proxy pro
xy.tamk.fi:8080
e4lguoli@KA32017:/d/li/github/practicalwork$ git push -u origin master
Counting objects: 131, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (126/126), done.
Writing objects: 100% (131/131), 990.10 KiB | 664.00 KiB/s, done.
Total 131 (delta 19), reused 0 (delta 0)
To https://github.com/federerlee/practicalwork.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
e4lguoli@KA32017:/d/li/github/practicalwork$

3 I am using a GitBash environment

Add new lience:
https://help.github.com/articles/open-source-licensing/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s