git上传代码到github

git上传代码到github

 1 [root@bigdata-hadoop-1 ~]# git init
 2 
 3 [root@bigdata-hadoop-1 ~]# git add zeppelin
 4 
 5 [root@bigdata-hadoop-1 ~]# git commit -m "first commit"
 6 
 7 *** Please tell me who you are.
 8 
 9 Run
10 
11   git config --global user.email "you@example.com"
12   git config --global user.name "Your Name"
13 
14 to set your account's default identity.
15 Omit --global to set the identity only in this repository.
16 
17 fatal: unable to auto-detect email address (got 'root@bigdata-redhadoop-1.(none)')
 1 [root@bigdata-hadoop-1 ~]# git config --global user.email "***@163.com"
 2 
 3 [root@bigdata-hadoop-1 ~]# git config --global user.name "mavennode"
 4 
 5 [root@bigdata-hadoop-1 ~]# git commit -m "first commit"
 6 
 7 [master fd62214] first commit
 8  4 files changed, 801 insertions(+)
 9  create mode 100644 zeppelin/build/README.md
10  create mode 100755 zeppelin/build/pom.xml
11  create mode 100644 zeppelin/rpm/README.md
12  create mode 100644 zeppelin/src/incubator-zeppelin.tar.gz
13 
14 [root@bigdata-hadoop-1 ~]# git status
15 
16 [root@bigdata-hadoop-1 ~]# git remote add origin https://github.com/Hadoop/bigcrh.git
17 [root@bigdata-hadoop-1 ~]# git push -u origin master
18 Password for 'https://mavennode@github.com':
19 Counting objects: 11, done.
20 Delta compression using up to 8 threads.
21 Compressing objects: 100% (8/8), done.
22 Writing objects: 100% (10/10), 38.26 MiB | 20.00 KiB/s, done.bjects:  90% (9/10), 10.89 MiB | 4.00 KiB/s   
23 Total 10 (delta 0), reused 0 (delta 0)
24 To https://mavennode@github.com/Hadoop/bigcrh.git
25    9f4a91d..fd62214  master -> master
26 Branch master set up to track remote branch master from origin.

 

posted @ 2016-06-15 21:45  派。  阅读(304)  评论(0编辑  收藏  举报