Create repository in github and do initial checkin/out

来源:互联网 发布:自动开关机的软件 编辑:程序博客网 时间:2024/05/20 18:43

Create repository on github:

1) Logon github by using your account

2) Setting up ssh key pair between github server and your computer, refer "https://help.github.com/articles/generating-ssh-keys"

3) Create a repository on github server by clicking 'new repository' on the github page

4) On your machine, clone the newly created repository by issuing 'git clone git@github.com:youraccountname/new_repository.git', enter the passphase.

5) Add your changes/new files by issuing 'git add *'

6) Commit your changes by issuing 'git commit -a'

7) Commit the changes to github server by issuing 'git push origin master'

CLI

touch README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/chenziliang/my_dotfiles.gitgit push -u origin master

原创粉丝点击