`
banxi1988
  • 浏览: 154218 次
  • 性别: Icon_minigender_1
  • 来自: 桂林
社区版块
存档分类
最新评论

在github中创建新repos

阅读更多

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

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

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

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

Global setup:

 Set up git
  git config --global user.name "banxi1988"
  git config --global user.email banxi1988@gmail.com
      

Next steps:

  mkdir weibo-gtk
  cd weibo-gtk
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:banxi1988/weibo-gtk.git
  git push -u origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin git@github.com: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 git@github.com: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 git@github.com:banxi1988/weibo-gtk.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
banxi1988@banxi:~/work/weibo-gtk$

0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics