1.git提交本地文件到组织
1.先再组织中建立个用于存放文件的仓库建然后复制仓库地址:

2.进入要上传的文件的根目录下右击 git Bash 进入git控制台,我要上传的文件如下:

3.进入后:
1.$ git

2.$ git init //初始化仓库,将此目录变成git管理的仓库

3.$ git add . //将文件添加到暂缓区(注意:别忘了后面的 .)
4.$ git commit -m "第一次提交" //描述类容

5.$ git remote add origin https://gitee.com/big-data-development-workshop/html-css-js.git//关联仓库,后面的https://...... 是刚开始复制的仓库地址
6.$ git pull --rebase origin master //将文件与远程仓库进行合并

7.$ git push -u origin master //将本地文件推送到git仓库上,会弹出要你登录git的页面

4.刷新一下仓库查看:

2.git提交文件到参与的项目中
git branch song //创建分支
git branch //查看本地分支
git checkout song //切换分支
git add . //将文件添加到暂缓区(注意:别忘了后面的 .)
git commit -m "" //描述类容
$ git remote add origin https://gitee.com/lijixin0916/hadoop.git //关联仓库
$ git push origin song //推送到项目中,等待管理员合并