git上传代码到github

时间:2023-03-08 16:28:42

git上传代码到github

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

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

 [root@bigdata-hadoop- ~]# 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- ~]# git config --global user.email "***@163.com"

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

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

 [master fd62214] first commit
files changed, insertions(+)
create mode zeppelin/build/README.md
create mode zeppelin/build/pom.xml
create mode zeppelin/rpm/README.md
create mode zeppelin/src/incubator-zeppelin.tar.gz [root@bigdata-hadoop- ~]# git status [root@bigdata-hadoop- ~]# git remote add origin https://github.com/Hadoop/bigcrh.git
[root@bigdata-hadoop- ~]# git push -u origin master
Password for 'https://mavennode@github.com':
Counting objects: , done.
Delta compression using up to threads.
Compressing objects: % (/), done.
Writing objects: % (/), 38.26 MiB | 20.00 KiB/s, done.bjects: % (/), 10.89 MiB | 4.00 KiB/s
Total (delta ), reused (delta )
To https://mavennode@github.com/Hadoop/bigcrh.git
9f4a91d..fd62214 master -> master
Branch master set up to track remote branch master from origin.