$ git log 查看版本记录
commit ee7db10d7dcd0779ebdf1362bc9081ed2cc17d2f (HEAD -> master)
co服务器托管网mmit cafbc9c7315969751f7323095555c18e04911379
Merge: de4f071 b136ecc
lvym@DESKTOP-58RHD5U MINGW64 /d/2023 (master)
$ git reset --hard b75de0d479fa5856399bec7442ea1f73d7aefe51 回滚
HEAD is now at b75de0d Merge branch 'dev' into 'master'
lvym@DESKTOP-58RHD5U MINGW64 /d/2023 (master)
$ git log
commit b75de0d479fa5856399bec7442ea1f73d7aefe51 (HEAD -> master)
$ git push 推送
To https://git.***.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.***.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help服务器托管网' for details.
lvym@DESKTOP-58RHD5U MINGW64 /d/2023 (master)
$ git push --force
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: To create a merge request for shili_master, visit:
remote: http://git.**/-/merge_requests/new?merge_request%5Bsource_branch%5D=master
remote:
To https://git.***.git
+ 31bbd09...b75de0d master -> master (forced update)
lvym@DESKTOP-58RHD5U MINGW64 /d/2023 (master)
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
////三. 枚举 ////枚举:就是一一列举,把可能的取值一一列举。 ////比如生活中: ////1.一周的星期一到星期日是有限的7天,可以一一列举。 ////2.性别有:男、女、保密,也可以一一列举。 ////2.月份有12个月,也可以一一列举 ////…