我们平时的作业练习
命令:
1.1. git init
1.2. git git remote add origin https://刚创建的那个仓库的地址
1.3. git pull origin master
1.4. git add .
1.5. git commit -m "测试上传"
1.6. git push origin master
C:\Users\Xiang\Desktop\data>git init
Initialized empty Git repository in C:/Users/Xiang/Desktop/data/.git/
C:\Users\Xiang\Desktop\data>git remote add origin https://gitee.com/java1-class/xiang-guimin.git
C:\Users\Xiang\Desktop\data>git pull origin master
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://gitee.com/java1-class/xiang-guimin
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
C:\Users\Xiang\Desktop\data>git add .
C:\Users\Xiang\Desktop\data>git commit -m "测试上传"
[master a44b78a] 测试上传
1 file changed, 54 insertions(+)
create mode 100644 spring5.md
C:\Users\Xiang\Desktop\data>git push origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1021 bytes | 1021.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.1]
To https://gitee.com/java1-class/xiang-guimin.git
601d8b2..a44b78a master -> master
C:\Users\Xiang\Desktop\data>