创建git仓库提交远程仓库(保姆级别建议收藏)

创建git仓库提交远程仓库(保姆级别建议收藏)

Administrator@dear758 MINGW64 /e/java_project/study/01day
$ git config --global user.name "大白菜程序猿"

Administrator@dear758 MINGW64 /e/java_project/study/01day
$ git config --global user.email "填写你的git邮箱账号"
# 不懂加本人:qq3098414278
Administrator@dear758 MINGW64 /e/java_project/study/01day
$ git init
Initialized empty Git repository in E:/java_project/study/01day/.git/

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git add .
warning: adding embedded git repository: back-dormitory-system
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint:   git submodule add <url> back-dormitory-system
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint:   git rm --cached back-dormitory-system
hint:
hint: See "git help submodule" for more information.
warning: LF will be replaced by CRLF in front-dormitory-system/api/clear.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in front-dormitory-system/api/init.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in front-dormitory-system/api/menus.json.
The file will have its original line endings in your working directory
.......................................

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git commit -m 'fristAdd'
[master (root-commit) 98ebf6b] fristAdd
 266 files changed, 64040 insertions(+)
 create mode 160000 back-dormitory-system
 create mode 100644 dormitory.sql
 create mode 100644 front-dormitory-system/.idea/.gitignore
 create mode 100644 front-dormitory-system/.idea/front.iml
 create mode 100644 front-dormitory-system/.idea/modules.xml
 .......................................

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git remote add origin https://gitee.com/wu_83/Dormitory-management-system.git

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git pull origin master --allow-unrelated-histories
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 1.09 KiB | 5.00 KiB/s, done.
From https://gitee.com/wu_83/Dormitory-management-system
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
Merge made by the 'recursive' strategy.
 .gitignore | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .gitignore

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git push -u origin master
Enumerating objects: 330, done.
Counting objects: 100% (330/330), done.
Delta compression using up to 4 threads
Compressing objects: 100% (314/314), done.
Writing objects: 100% (329/329), 12.99 MiB | 938.00 KiB/s, done.
Total 329 (delta 41), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (41/41), done.
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/wu_83/Dormitory-management-system.git
   e2054c3..036368c  master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

Administrator@dear758 MINGW64 /e/java_project/study/01day (master)
$ git checkout -b dev
Switched to a new branch 'dev'

Administrator@dear758 MINGW64 /e/java_project/study/01day (dev)
$ git branch
* dev
  master

Administrator@dear758 MINGW64 /e/java_project/study/01day (dev)
$ git push origin dev
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/wu_83/Dormitory-management-system.git
   e2054c3..036368c  dev -> dev

Administrator@dear758 MINGW64 /e/java_project/study/01day (dev)
$ git branch --set-upstream-to=origin/dev
Branch 'dev' set up to track remote branch 'dev' from 'origin'.

Administrator@dear758 MINGW64 /e/java_project/study/01day (dev)
$ git pull
Already up to date.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大白菜程序猿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值