在github中创建新repos

在用github的web页面填写了项目名称之后。

会跳转到有下面提示的页面。

根据提示很轻松的就可以创建一个repos了。

注意了。前提是你已经设置好你的github账户了。

Global setup:

 Set up git
  git config --global user.name "banxi1988"
  git config --global user.email [email protected]
      

Next steps:

  mkdir weibo-gtk
  cd weibo-gtk
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin [email protected]:banxi1988/weibo-gtk.git
  git push -u origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin [email protected]:banxi1988/weibo-gtk.git
  git push -u origin master
      

Importing a Subversion Repo?

  Click here
      

When you're done:

  Continue

 

 

banxi1988@banxi:~$ cd work/
banxi1988@banxi:~/work$ mkdir weibo-gtk && cd weibo-gtk/
banxi1988@banxi:~/work/weibo-gtk$ git init
Initialized empty Git repository in /home/banxi1988/work/weibo-gtk/.git/
banxi1988@banxi:~/work/weibo-gtk$ touch README
banxi1988@banxi:~/work/weibo-gtk$ git add README
banxi1988@banxi:~/work/weibo-gtk$ git commit -m"first commit"
[master (root-commit) 383b373] first commit
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README
banxi1988@banxi:~/work/weibo-gtk$ git remote add origin [email protected]:banxi1988/weibo-gtk.git
banxi1988@banxi:~/work/weibo-gtk$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 213 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To [email protected]:banxi1988/weibo-gtk.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
banxi1988@banxi:~/work/weibo-gtk$

你可能感兴趣的:(github,git)