git版本管理器的使用<win>

//登录
1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git config --global user.name "{github名}"

1@LAPTOP-TD0UB0FL MINGW64 /f/test
$ git config --global user.email "{github注册的邮箱}"

 

 

//初始化仓库

1@LAPTOP-TD0UB0FL MINGW64 /f/test
$ git init
Initialized empty Git repository in F:/test/.git/

 

 

 

 

//添加到本地

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git add .
warning: LF will be replaced by CRLF in js/animate.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/echarts.js.
The file will have its original line endings in your working directory

 

 

 

 

//提交到本地

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git commit -m "oneQTtest"
[master (root-commit) ceb031c] oneQTtest
12 files changed, 95106 insertions(+)
create mode 100644 css/public.css
create mode 100644 images/img1.bmp
create mode 100644 images/img2.bmp
create mode 100644 images/img3.bmp
create mode 100644 images/img4.bmp
create mode 100644 images/img5.bmp
create mode 100644 images/message.png
create mode 100644 images/systemSet.png
create mode 100644 index.html
create mode 100644 js/animate.js
create mode 100644 js/echarts.js
create mode 100644 js/index.js

 

 

//连接到远程仓库

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git remote add origin git@github.com:lizongxiao/TQtest.git

 

 

//发送到远程仓库

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git push -u origin master
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 16 threads
Compressing objects: 100% (16/16), done.
client_loop: send disconnect: Connection reset by peer
send-pack: unexpected disconnect while reading sideband packet
fatal: sha1 file '<stdout>' write error: Broken pipes
fatal: the remote end hung up unexpectedly

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)
$ git push -u origin master
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 16 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 103.61 MiB | 269.00 KiB/s, done.
Total 17 (delta 0), reused 0 (delta 0), pack-reused 0
remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File images/img3.bmp is 63.28 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File images/img1.bmp is 63.28 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/lizongxiao/TQtest/pull/new/master
remote:
To github.com:lizongxiao/TQtest.git
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.

1@LAPTOP-TD0UB0FL MINGW64 /f/test (master)

 

posted @ 2022-03-16 23:42  Chiffon1996  阅读(421)  评论(0)    收藏  举报