苗火 Nicholas
[ubuntu]How to start github
2015-10-30 萧


Install git:



apt-get install git







Create a account:



Visit github.com, register a account.







Create a project in github.com.







Create a new repository on the command line:



git config --user.name=***



git config --user.email=***@anycle.com



git config --list



mkdir test



cd test



touch README.md



git init



git add README.md



git commit -m "first commit"



git remote add origin https://github.com/anycle/test.git



git push -u origin master







Or push an existing repository from the command line:



git remote add origin https://github.com/anycle/test.git



git push -u origin master







Or import code from another repository



You can initialize thie repository with code from a Subversion, Mercurial, or TFS project.





发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容