0%

GIT bash 代码版本管理

GIT bash 代码版本管理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop
$ ==git config --global user.name ZHANGCAIBIN==

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop
$ ==git config --global user.email zhangcaibin21@gmail.com==

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop
$ ==git clone https://github.com/HUSTERGS/SoftwareEngineeringProject.git==
Cloning into 'SoftwareEngineeringProject'...
remote: Enumerating objects: 520, done.
remote: Total 520 (delta 0), reused 0 (delta 0), pack-reused 520
s: 92% (479/520), 1.64 MiB | 57.00 KiB/s
Receiving objects: 100% (520/520), 1.65 MiB | 56.00 KiB/s, done.
Resolving deltas: 100% (200/200), done.

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject
$ ==git init==
Initialized empty Git repository in C:/Users/ZHANGCAIBIN/Desktop/myProject/.git/

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ ==git add .==

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ ==git commit -m "本次提交的备注20220424-功能1已经完成"==
[master (root-commit) 7e3b1d9] 本次提交的备注20220424-功能1已经完成
1 file changed, 1 insertion(+)
create mode 100644 main.c

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ ==git log==
commit 7e3b1d998a4b7ab090ba104762b9c20a246e4e89 (HEAD -> master)
Author: ZHANGCAIBIN <zhangcaibin21@gmail.com>
Date: Sun Apr 24 23:39:13 2022 +0800
本次提交的备注20220424-功能1已经完成
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ ==git checkout HEAD main.c==
Updated 0 paths from 593cd49

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ git add main.c

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ git commit -m "本次提交的备注20220424-功能2已经完成"
On branch master
nothing to commit, working tree clean

ZHANGCAIBIN@DESKTOP-882NE2R MINGW64 ~/Desktop/myProject (master)
$ git log
commit 7e3b1d998a4b7ab090ba104762b9c20a246e4e89 (HEAD -> master)
Author: ZHANGCAIBIN <zhangcaibin21@gmail.com>
Date: Sun Apr 24 23:39:13 2022 +0800
本次提交的备注20220424-功能1已经完成
谢谢你们对我的支持!

欢迎关注我的其它发布渠道