码迷,mamicode.com
首页 > Web开发 > 详细

git上传代码到github

时间:2016-06-15 22:04:23      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

git上传代码带github

[root@bigdata-hadoop-1 ~]# git init

[root@bigdata-hadoop-1 ~]# git add zeppelin

[root@bigdata-hadoop-1 ~]# git commit -m "first commit"

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account‘s default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘root@bigdata-redhadoop-1.(none)‘)

 

[root@bigdata-hadoop-1 ~]# git config --global user.email "***@163.com"

[root@bigdata-hadoop-1 ~]# git config --global user.name "mavennode"

[root@bigdata-hadoop-1 ~]# git commit -m "first commit"

[master fd62214] first commit
 4 files changed, 801 insertions(+)
 create mode 100644 zeppelin/build/README.md
 create mode 100755 zeppelin/build/pom.xml
 create mode 100644 zeppelin/rpm/README.md
 create mode 100644 zeppelin/src/incubator-zeppelin.tar.gz

[root@bigdata-hadoop-1 ~]# git status

[root@bigdata-hadoop-1 ~]# git remote add origin https://github.com/Hadoop/bigcrh.git
[root@bigdata-hadoop-1 ~]# git push -u origin master
Password for ‘https://mavennode@github.com‘:
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 38.26 MiB | 20.00 KiB/s, done.bjects:  90% (9/10), 10.89 MiB | 4.00 KiB/s   
Total 10 (delta 0), reused 0 (delta 0)
To https://mavennode@github.com/Hadoop/bigcrh.git
   9f4a91d..fd62214  master -> master
Branch master set up to track remote branch master from origin.

 

git上传代码到github

标签:

原文地址:http://www.cnblogs.com/womars/p/5588601.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!