Linux篇【4】:Git,Gitee,GitHub

news2024/11/25 11:48:40

在 Linux 系统中,如何将普通源文件和普通头文件上传到 Gitee ? 

    Git 是一个分布式的版本控制器,目前可以理解成百度云盘,其次,在 Linux 系统中,Git 也是一个软件/工具/指令,在 Windows 系统中,Git 也是一个软件/工具,Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的分布式的版本控制器,而 Gitee 或 Github 则都是基于 Git 搭建起来的网站,在本地和远端都有着自己的 Git 仓库 、


    登录 Gitee ,新建一个 Gitee 仓库,若不想在 Gitee 上面新建一个远端的 Gitee 仓库,则也可以在本地新建一个本地的 Gitee 仓库,再推送到远端,但是比较麻烦,不推荐使用,现在国家对于信息管理要求越来越严格,当前在 Gitee 上默认只能创建私有仓库(仅仓库成员可见),创建好之后,当仓库被审核通过后,若再想进行开源,则可以在仓库管理中进行手动设置、

[HJM@hjmlcc ~]$ ls
Makefile  process.c
//使用下述指令可将远端的 Git 仓库克隆到本地、
[HJM@hjmlcc ~]$ git clone https://gitee.com/LCC11223/for_-linux_-code.git
Cloning into 'for_-linux_-code'...
//输入 Gitee 的账号和密码、
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
[HJM@hjmlcc ~]$ ls
for_-linux_-code  Makefile  process.c
[HJM@hjmlcc ~]$ ll
total 12
drwxrwxr-x 3 HJM HJM 4096 Nov  7 18:26 for_-linux_-code   //目录文件、
// for_-linux_-code 这就是本地的 Git 仓库(目录文件),由克隆远端的 Git 仓库得到、
-rw-rw-r-- 1 HJM HJM   80 Nov  6 15:01 Makefile
-rw-rw-r-- 1 HJM HJM 1116 Nov  6 16:06 process.c
[HJM@hjmlcc ~]$ cd for_-linux_-code
[HJM@hjmlcc for_-linux_-code]$ ls
LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ ll
total 12
-rw-rw-r-- 1 HJM HJM 637 Nov  7 18:26 LICENSE
-rw-rw-r-- 1 HJM HJM 865 Nov  7 18:26 README.en.md
-rw-rw-r-- 1 HJM HJM 954 Nov  7 18:26 README.md
[HJM@hjmlcc for_-linux_-code]$ ls -al
total 28
drwxrwxr-x 3 HJM HJM 4096 Nov  7 18:26 .
drwx---rwx 9 HJM HJM 4096 Nov  7 18:26 ..
drwxrwxr-x 8 HJM HJM 4096 Nov  7 18:26 .git
//在当前路径下存在一个以.开头的隐藏的目录文件,这就是所谓的本地的 Git 仓库(目录文件)、
//所谓的将本地的代码同步到远端,不仅仅只是同步普通文件:LICENSE,README.en.md和README.md
//还有就是将本地的 Git 仓库中的内容同步到远端的 Git 仓库中、
-rw-rw-r-- 1 HJM HJM  270 Nov  7 18:26 .gitignore
-rw-rw-r-- 1 HJM HJM  637 Nov  7 18:26 LICENSE
-rw-rw-r-- 1 HJM HJM  865 Nov  7 18:26 README.en.md
-rw-rw-r-- 1 HJM HJM  954 Nov  7 18:26 README.md
[HJM@hjmlcc for_-linux_-code]$ tree .git
.git
|-- branches
|-- config
|-- description
|-- HEAD
|-- hooks
|   |-- applypatch-msg.sample
|   |-- commit-msg.sample
|   |-- post-update.sample
|   |-- pre-applypatch.sample
|   |-- pre-commit.sample
|   |-- prepare-commit-msg.sample
|   |-- pre-push.sample
|   |-- pre-rebase.sample
|   `-- update.sample
|-- index
|-- info
|   `-- exclude
|-- logs
|   |-- HEAD
|   `-- refs
|       |-- heads
|       |   `-- master
|       `-- remotes
|           `-- origin
|               `-- HEAD
|-- objects
|   |-- 1b
|   |   `-- 63b36d648f566432eea5db256596ddbd2d513f
|   |-- 25
|   |   `-- 9148fa18f9fb7ef58563f4ff15fc7b172339fb
|   |-- 71
|   |   `-- 70d07d9d8c63ec3d0d2a0c6452c855585e0dbd
|   |-- af
|   |   `-- 0ce369a0d2dbf87e87b41f72f491d5b6d99c25
|   |-- f1
|   |   |-- 368e746a904df720529cd9eeba5c563410a1f7
|   |   `-- 6e18c48ed6547149694f1a2a217c1038f56d1a
|   |-- info
|   `-- pack
|-- packed-refs
`-- refs
    |-- heads
    |   `-- master
    |-- remotes
    |   `-- origin
    |       `-- HEAD
    `-- tags

21 directories, 26 files          
//本地的 Git 仓库中的内容一定不要修改,否则就会出错、
[HJM@hjmlcc for_-linux_-code]$ touch test.c
[HJM@hjmlcc for_-linux_-code]$ vim test.c
[HJM@hjmlcc for_-linux_-code]$ ls
LICENSE  README.en.md  README.md  test.c
[HJM@hjmlcc for_-linux_-code]$ cat test.c
#include<stdio.h>
int main()
{
  printf("Hello,Lcc\n");
  return 0;
}
[HJM@hjmlcc for_-linux_-code]$ ll
total 16
-rw-rw-r-- 1 HJM HJM 637 Nov  8 11:02 LICENSE
-rw-rw-r-- 1 HJM HJM 865 Nov  8 11:02 README.en.md
-rw-rw-r-- 1 HJM HJM 954 Nov  8 11:02 README.md
-rw-rw-r-- 1 HJM HJM  70 Nov  8 11:05 test.c
//查看本地的 Git 仓库与远端的 Git 仓库之间的关系、
[HJM@hjmlcc for_-linux_-code]$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	test.c        //当前有一个没有被管理的普通源文件:test.c、
nothing added to commit but untracked files present (use "git add" to track)


//三板斧:
//第一板斧:
[HJM@hjmlcc for_-linux_-code]$ git add test.c   

//第二板斧:
//该操作是把普通源文件test.c添加到本地的 Git 仓库,其中,-m(message,不可省略):代表本次的提交
//日志,注意:提交日志不能乱写、
[HJM@hjmlcc for_-linux_-code]$ git commit -m "新增了一个测试代码,仅仅是一个简单的程序"
[master c90d03b] 新增了一个测试代码,仅仅是一个简单的程序
 1 file changed, 6 insertions(+)
 create mode 100644 test.c

//第三板斧:
[HJM@hjmlcc for_-linux_-code]$ git push
//该操作是把普通源文件test.c添加到远端的 Git 仓库、
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
//上述的警告可忽略不管、
//输入 Gitee 的账号和密码、
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 400 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   f77bd8f..c90d03b  master -> master
[HJM@hjmlcc for_-linux_-code]$ clear

    经过上述在线编辑的操作后,此时本地的 Git 仓库中的普通源文件 test.c 中的内容和远端的 Git仓库中的普通源文件 test.c 中的内容就不相同了,从而导致本地 Git 仓库和远端 Git 仓库中的内容就不同了、 

[HJM@hjmlcc for_-linux_-code]$ clear
[HJM@hjmlcc for_-linux_-code]$ ls
LICENSE  README.en.md  README.md  test.c
[HJM@hjmlcc for_-linux_-code]$ touch lcc.c
[HJM@hjmlcc for_-linux_-code]$ echo "lccwan" > lcc.c
[HJM@hjmlcc for_-linux_-code]$ cat lcc.c
lccwan
[HJM@hjmlcc for_-linux_-code]$ git add lcc.c
[HJM@hjmlcc for_-linux_-code]$ git commit -m "仅仅用来测试"
[master 88e5d89] 仅仅用来测试
 1 file changed, 1 insertion(+), 1 deletion(-)
[HJM@hjmlcc for_-linux_-code]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
//上述的警告可忽略不管、
//输入 Gitee 的账号和密码、
Username for 'https://gitee.com': 13386323259     
Password for 'https://13386323259@gitee.com': 
To https://gitee.com/LCC11223/for_-linux_-code.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://gitee.com/LCC11223/for_-linux_-code.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
[HJM@hjmlcc for_-linux_-code]$ 

    此时,就出现了一些冲突(hint),这是因为,由于上面的在线编辑的操作,导致本地的 Git 仓库中的内容和远端 Git 仓库中的内容不一样了,但是,如果我们再想往 Gitee 上面提交新的普通文件(普通头文件或普通源文件)时,前提要保证,本地 Git 仓库中的内容和远端 Git 仓库中的内容一样才可以,否则就会出现冲突,我们只考虑往 Gitee 上面提交普通文件中的普通源文件和普通头文件,其他的一律不考虑,具体解决方法如下所示:

//让本地的 Git 仓库中的内容与远端 Git 仓库中的内容保持一样、
[HJM@hjmlcc for_-linux_-code]$ git pull
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://gitee.com/LCC11223/for_-linux_-code
   660c252..6eba4f3  master     -> origin/master
Error detected while processing /home/HJM/.vimrc:
line    5:
E492: Not an editor command: Plug 'Valloric/YouCompleteMe'
line    6:
E492: Not an editor command: Plug 'bling/vim-airline'
line    7:
E492: Not an editor command: Plug 'vim-airline/vim-airline-themes'
line    8:
E492: Not an editor command: Plug 'morhetz/gruvbox'
line    9:
E492: Not an editor command: Plug 'octol/vim-cpp-enhanced-highlight'
line   10:
E492: Not an editor command: Plug 'SirVer/ultisnips'
line   11:
E492: Not an editor command: Plug 'tpope/vim-surround'
line   12:
E492: Not an editor command: Plug 'flazz/vim-colorschemes'
line   13:
E492: Not an editor command: Plug 'scrooloose/nerdtree'
line   14:
E492: Not an editor command: Plug 'python-mode/python-mode'
line   15:
E492: Not an editor command: Plug 'scrooloose/nerdcommenter'
line   16:
E492: Not an editor command: Plug 'Yggdroot/LeaderF'
line   17:
E492: Not an editor command: Plug 'cpiger/NeoDebug'
line   18:
E492: Not an editor command: Plug 'ryanoasis/vim-devicons'
line   22:
E492: Not an editor command: Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh', }
line   23:
E492: Not an editor command: Plug 'fatih/vim-go'
line   30:
E185: Cannot find color scheme 'luna-term'
line   59:
E518: Unknown option: foldmethod=marker
line  142:
E518: Unknown option: foldenable
line  150:
E518: Unknown option: foldmethod=indent
line  151:
E518: Unknown option: foldlevel=99
line  295:
E31: No such mapping
line  296:
E31: No such mapping
line  297:
E31: No such mapping
line  298:
E31: No such mapping
line  299:
E31: No such mapping
line  300:
E31: No such mapping
line  301:
E31: No such mapping
line  302:
E31: No such mapping
line  307:
E492: Not an editor command: ^Iterminal
Press ENTER or type command to continue
//此时可能因为vim配置存在一些问题(不支持git)导致出现上述这些内容,直接敲回车,再进入底行/末行
//模式下输入q!,再敲回车,再进入底行/末行模式下输入q!,再敲回车,得到如下结果:
Merge made by the 'recursive' strategy.
 lcc.c | 2 ++
 1 file changed, 2 insertions(+)
[HJM@hjmlcc for_-linux_-code]$ 
//此时就默认本地的 Git 仓库中的内容与远端 Git 仓库中的内容保持一样了、
[HJM@hjmlcc for_-linux_-code]$ cat test.c
#include<stdio.h>
int main()
{
  printf("Hello,Lcc\n");
  printf("Hello,Hjm\n");
  return 0;
}
[HJM@hjmlcc for_-linux_-code]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
//上述的警告可忽略不管、
//输入 Gitee 的账号和密码、
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 554 bytes | 0 bytes/s, done.
Total 5 (delta 2), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   6eba4f3..6bd0bf2  master -> master
[HJM@hjmlcc for_-linux_-code]$ git log   
commit d6d69d1c31fcd913bd7934fe0d8a9a1fa6743891
Merge: fe36cbb 5eda4f1
Author: 惠俊明 <915398909@qq.com>
Date:   Tue Nov 8 11:15:30 2022 +0800

    Merge branch 'master' of https://gitee.com/LCC11223/for_-linux_-code

commit fe36cbb7397f60c5b1d048f639766f6fe2efd142
Author: 惠俊明 <915398909@qq.com>
Date:   Tue Nov 8 11:13:08 2022 +0800

    仅仅用来测试

commit 5eda4f162682114eccec5b0cf522a1196b5d351d
Author: 惠俊明 <915398909@qq.com>
Date:   Tue Nov 8 03:11:58 2022 +0000

    update test.c.
    再次添加日志
    
    Signed-off-by: 惠俊明 <915398909@qq.com>

commit a6c196de4e711453d06e623b3d58ae55a7c7ed34
Author: 惠俊明 <915398909@qq.com>
Date:   Tue Nov 8 11:09:40 2022 +0800

    新增了一个测试代码,仅仅是一个简单的程序

commit 25613b809ff363adc777fbd19d17f5d0fa6b2cb3
Author: 惠俊明 <915398909@qq.com>
Date:   Tue Nov 8 03:02:01 2022 +0000

: //输入q退出、


当首次使用 git 软件/工具/指令时,可能会提示需要设置用户名和邮箱,如下所示:

//在某一个本地的 Git 仓库中设置全部的本地的 Git 仓库的用户名:   常用、
git config --global user.name "惠俊明"

//在某一个本地的 Git 仓库中设置全部的本地的 Git 仓库的邮箱:     常用、
git config --global user.email 915398909@qq.com

//在某一个本地的 Git 仓库中设置当前的本地的 Git 仓库的用户名:
git config user.name "惠俊明"

//在某一个本地的 Git 仓库中设置当前的本地的 Git 仓库的邮箱:
git config user.email 915398909@qq.com

//在某一个本地的 Git 仓库中查看当前的本地的 Git 仓库的用户名和邮箱:
git config user.name
git config user.email

如何实现如下所示的功能:

[HJM@hjmlcc ~]$ ls
Makefile  process.c
[HJM@hjmlcc ~]$ git clone https://gitee.com/LCC11223/for_-linux_-delete.git
Cloning into 'for_-linux_-delete'...
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
[HJM@hjmlcc ~]$ ls
for_-linux_-delete  Makefile  process.c
[HJM@hjmlcc ~]$ cd for_-linux_-delete
[HJM@hjmlcc for_-linux_-delete]$ ls
LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-delete]$ mkdir 2022_11_8
[HJM@hjmlcc for_-linux_-delete]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-delete]$ cd 2022_11_8
[HJM@hjmlcc 2022_11_8]$ ls
[HJM@hjmlcc 2022_11_8]$ touch lcc.c
[HJM@hjmlcc 2022_11_8]$ vim lcc.c
[HJM@hjmlcc 2022_11_8]$ cat lcc.c
#include<stdio.h>
int main()
{
  printf("Hello,Lcc\n");
  return 0;
}
[HJM@hjmlcc 2022_11_8]$ git add lcc.c
[HJM@hjmlcc 2022_11_8]$ git commit -m "新增了一个测试代码,仅仅是一个简单的程序"
[master 170320e] 新增了一个测试代码,仅仅是一个简单的程序
 1 file changed, 6 insertions(+)
 create mode 100644 2022_11_8/lcc.c
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 447 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-delete.git
   24cd5c4..170320e  master -> master
[HJM@hjmlcc 2022_11_8]$ 

关于 git 的 .gitignore 问题:

[HJM@hjmlcc ~]$ clear
[HJM@hjmlcc ~]$ ls
Makefile  process.c
[HJM@hjmlcc ~]$ git clone https://gitee.com/LCC11223/for_-linux_-delete.git
Cloning into 'for_-linux_-delete'...
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 37 (delta 12), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (37/37), done.
[HJM@hjmlcc ~]$ ls
for_-linux_-delete  Makefile  process.c
[HJM@hjmlcc ~]$ cd for_-linux_-delete
[HJM@hjmlcc for_-linux_-delete]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-delete]$ cd 2022_11_8
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8]$ cd ..
[HJM@hjmlcc for_-linux_-delete]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-delete]$ ls -al
total 32
drwxrwxr-x 4 HJM HJM 4096 Nov  8 15:54 .
drwx---rwx 9 HJM HJM 4096 Nov  8 15:54 ..
drwxrwxr-x 2 HJM HJM 4096 Nov  8 15:54 2022_11_8
drwxrwxr-x 8 HJM HJM 4096 Nov  8 15:54 .git
-rw-rw-r-- 1 HJM HJM  270 Nov  8 15:54 .gitignore
-rw-rw-r-- 1 HJM HJM  637 Nov  8 15:54 LICENSE
-rw-rw-r-- 1 HJM HJM  832 Nov  8 15:54 README.en.md
-rw-rw-r-- 1 HJM HJM  921 Nov  8 15:54 README.md
[HJM@hjmlcc for_-linux_-delete]$ vim .gitignore
[HJM@hjmlcc for_-linux_-delete]$ cat .gitignore
# 自己定义的:
*.x
*.X

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
[HJM@hjmlcc for_-linux_-delete]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-delete]$ cd 2022_11_8
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8]$ touch lcc.x
[HJM@hjmlcc 2022_11_8]$ touch lcc.X
[HJM@hjmlcc 2022_11_8]$ touch lcc.y
[HJM@hjmlcc 2022_11_8]$ touch lcc.Y
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c  lcc.x  lcc.X  lcc.y  lcc.Y
[HJM@hjmlcc 2022_11_8]$ git add .
[HJM@hjmlcc 2022_11_8]$ git commit -m "测试.gitignore"
[master 1a628cd] 测试.gitignore
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 2022_11_8/lcc.Y
 create mode 100644 2022_11_8/lcc.y
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 348 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-delete.git
   8d1397f..1a628cd  master -> master
[HJM@hjmlcc 2022_11_8]$ git status
# 0n branch master
nothing to commit , working directory clean
[HJM@hjmlcc 2022_11_8]$


对于 Git Version 1.x :


一:

[HJM@hjmlcc ~]$ ls
Makefile  process.c
[HJM@hjmlcc ~]$ git clone https://gitee.com/LCC11223/for_-linux_-code.git
Cloning into 'for_-linux_-code'...
Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
remote: Enumerating objects: 75, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 75 (delta 24), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (75/75), done.
[HJM@hjmlcc ~]$ ls
for_-linux_-code  Makefile  process.c
[HJM@hjmlcc ~]$ cd for_-linux_-code
[HJM@hjmlcc for_-linux_-code]$ ls
LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ mkdir 2022_11_8
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8
[HJM@hjmlcc 2022_11_8]$ ls
[HJM@hjmlcc 2022_11_8]$ touch lcc.c
[HJM@hjmlcc 2022_11_8]$ vim lcc.c
[HJM@hjmlcc 2022_11_8]$ cat lcc.c
woailiuchenchen
[HJM@hjmlcc 2022_11_8]$ git add lcc.c
[HJM@hjmlcc 2022_11_8]$ git commit -m "仅仅用来测试"
[master 5b2372f] 仅仅用来测试
 1 file changed, 1 insertion(+)
 create mode 100644 2022_11_8/lcc.c
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 350 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   4fb04d9..5b2372f  master -> master
[HJM@hjmlcc 2022_11_8]$ 

[HJM@hjmlcc 2022_11_8]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8]$ vim lcc.c
[HJM@hjmlcc 2022_11_8]$ cat lcc.c
HJMailiuchenchen
[HJM@hjmlcc 2022_11_8]$ touch hjm.c
[HJM@hjmlcc 2022_11_8]$ echo "lcc" > hjm.c
[HJM@hjmlcc 2022_11_8]$ ls
hjm.c  lcc.c
[HJM@hjmlcc 2022_11_8]$ cat hjm.c
lcc
[HJM@hjmlcc 2022_11_8]$ git add .
[HJM@hjmlcc 2022_11_8]$ git commit -m "测试指令git add ."
[master bd19d9b] 测试指令git add .
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 2022_11_8/hjm.c
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 8, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 379 bytes | 0 bytes/s, done.
Total 5 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   5b2372f..bd19d9b  master -> master
[HJM@hjmlcc 2022_11_8]$ 

 


二:

[HJM@hjmlcc ~]$ ls
for_-linux_-code  Makefile  process.c
[HJM@hjmlcc ~]$ cd for_-linux_-code
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8
[HJM@hjmlcc 2022_11_8]$ ls
hjm.c  lcc.c
[HJM@hjmlcc 2022_11_8]$ vim lcc.c  //修改普通源文件lcc.c中的内容、
[HJM@hjmlcc 2022_11_8]$ rm hjm.c   //删除普通源文件hjm.c、
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8]$ cat lcc.c
HJMailiuchenchen521
[HJM@hjmlcc 2022_11_8]$ git add -u
[HJM@hjmlcc 2022_11_8]$ git commit -m "测试git add -u"
[master 463dd4c] 测试git add -u
 2 files changed, 1 insertion(+), 2 deletions(-)
 delete mode 100644 2022_11_8/hjm.c
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 335 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   bd19d9b..463dd4c  master -> master
[HJM@hjmlcc 2022_11_8]$ 
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8]$ touch LCC.c
[HJM@hjmlcc 2022_11_8]$ echo "hjm" > LCC.c
[HJM@hjmlcc 2022_11_8]$ ls
lcc.c  LCC.c
[HJM@hjmlcc 2022_11_8]$ git add -u
[HJM@hjmlcc 2022_11_8]$ git commit -m "测试指令git add -u"
# On branch master  //#分支机构主管
# Untracked files:  //#未跟踪的文件:
#   (use "git add <file>..." to include in what will be committed)
//#(使用“git添加<文件> ...”包括在将要提交的内容中)
#
#	LCC.c
nothing added to commit but untracked files present (use "git add" to track)
//提交时没有添加任何内容,但存在未跟踪的文件(使用“git add”进行跟踪)、
[HJM@hjmlcc 2022_11_8]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Everything up-to-date  //一切都是最新的
[HJM@hjmlcc 2022_11_8]$ 


三:

[HJM@hjmlcc ~]$ ls
Makefile  process.c
[HJM@hjmlcc ~]$ git clone https://gitee.com/LCC11223/for_-linux_-code.git
Cloning into 'for_-linux_-code'...
remote: Enumerating objects: 91, done.
remote: Counting objects: 100% (91/91), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 91 (delta 28), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (91/91), done.
[HJM@hjmlcc ~]$ ls
for_-linux_-code  Makefile  process.c
[HJM@hjmlcc ~]$ cd for_-linux_-code
[HJM@hjmlcc for_-linux_-code]$ ls
LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ mkdir 2022_11_8_1
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8_1
[HJM@hjmlcc 2022_11_8_1]$ ls
[HJM@hjmlcc 2022_11_8_1]$ touch lcc.c hjm.c
[HJM@hjmlcc 2022_11_8_1]$ echo "lcc" > lcc.c
[HJM@hjmlcc 2022_11_8_1]$ echo "hjm" > hjm.c
[HJM@hjmlcc 2022_11_8_1]$ cat lcc.c
lcc
[HJM@hjmlcc 2022_11_8_1]$ cat hjm.c
hjm
[HJM@hjmlcc 2022_11_8_1]$ git add .
[HJM@hjmlcc 2022_11_8_1]$ git commit -m "测试指令git add ."
[master b0fea76] 测试指令git add .
 2 files changed, 2 insertions(+)
 create mode 100644 2022_11_8_1/hjm.c
 create mode 100644 2022_11_8_1/lcc.c
[HJM@hjmlcc 2022_11_8_1]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 383 bytes | 0 bytes/s, done.
Total 5 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   ca6a9bd..b0fea76  master -> master
[HJM@hjmlcc 2022_11_8_1]$ 

 

[HJM@hjmlcc 2022_11_8_1]$ ls
hjm.c  lcc.c
[HJM@hjmlcc 2022_11_8_1]$ cd ..
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ mkdir 2022_11_8_2
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  2022_11_8_2  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8_2
[HJM@hjmlcc 2022_11_8_2]$ ls
[HJM@hjmlcc 2022_11_8_2]$ touch lh.c
[HJM@hjmlcc 2022_11_8_2]$ echo "11223" > lh.c
[HJM@hjmlcc 2022_11_8_2]$ ls
lh.c
[HJM@hjmlcc 2022_11_8_2]$ cd ..
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  2022_11_8_2  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8_1
[HJM@hjmlcc 2022_11_8_1]$ ls
hjm.c  lcc.c
[HJM@hjmlcc 2022_11_8_1]$ git add -A :/
[HJM@hjmlcc 2022_11_8_1]$ git commit -m "测试指令git add -A :/"
[master dac8cbe] 测试指令git add -A :/
 1 file changed, 1 insertion(+)
 create mode 100644 2022_11_8_2/lh.c
[HJM@hjmlcc 2022_11_8_1]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 347 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   b0fea76..dac8cbe  master -> master
[HJM@hjmlcc 2022_11_8_1]$ 

[HJM@hjmlcc 2022_11_8_1]$ clear
[HJM@hjmlcc 2022_11_8_1]$ pwd
/home/HJM/for_-linux_-code/2022_11_8_1
[HJM@hjmlcc 2022_11_8_1]$ ls
hjm.c  lcc.c
[HJM@hjmlcc 2022_11_8_1]$ cat lcc.c
lcc
[HJM@hjmlcc 2022_11_8_1]$ echo "hjm" >> lcc.c   //修改普通源文件lcc.c中的内容、
[HJM@hjmlcc 2022_11_8_1]$ cat lcc.c
lcc
hjm
[HJM@hjmlcc 2022_11_8_1]$ rm hjm.c              //删除普通源文件hjm.c、
[HJM@hjmlcc 2022_11_8_1]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8_1]$ cat lcc.c
lcc
hjm
[HJM@hjmlcc 2022_11_8_1]$ pwd
/home/HJM/for_-linux_-code/2022_11_8_1
[HJM@hjmlcc 2022_11_8_1]$ cd ..
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  2022_11_8_2  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8_2
[HJM@hjmlcc 2022_11_8_2]$ ls
lh.c
[HJM@hjmlcc 2022_11_8_2]$ touch lcc.c
[HJM@hjmlcc 2022_11_8_2]$ echo "lcc" > lcc.c
[HJM@hjmlcc 2022_11_8_2]$ cat lcc.c
lcc
[HJM@hjmlcc 2022_11_8_2]$ cd ..
[HJM@hjmlcc for_-linux_-code]$ pwd
/home/HJM/for_-linux_-code
[HJM@hjmlcc for_-linux_-code]$ ls
2022_11_8_1  2022_11_8_2  LICENSE  README.en.md  README.md
[HJM@hjmlcc for_-linux_-code]$ cd 2022_11_8_1
[HJM@hjmlcc 2022_11_8_1]$ ls
lcc.c
[HJM@hjmlcc 2022_11_8_1]$ git add -A :/
[HJM@hjmlcc 2022_11_8_1]$ git commit -m "测试指令git add -A :/"
[master 53c6418] 测试指令git add -A :/
 3 files changed, 2 insertions(+), 1 deletion(-)
 delete mode 100644 2022_11_8_1/hjm.c
 create mode 100644 2022_11_8_2/lcc.c
[HJM@hjmlcc 2022_11_8_1]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://gitee.com': 13386323259
Password for 'https://13386323259@gitee.com': 
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 552 bytes | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-6.4]
To https://gitee.com/LCC11223/for_-linux_-code.git
   b0fea76..dac8cbe  master -> master
[HJM@hjmlcc 2022_11_8_1]$

 


四:


远端的 Git 仓库如何开源:

注意:

    不要在 Gitee 上新建远端的 Git 仓库之后立马开源,最好要等到在该远端的 Git 仓库中提交一些内容之后,再进行开源,实在不行改一下 Readme 、


远端的 Git 仓库如何删除:


本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/4337.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

212 - 218. MySQL索引的基本用法

1.索引的简介 1.1 索引的概念 是数据库对象&#xff0c;实现数据库快速查询 1.2 为什么使用索引 实现数据库快速查询&#xff0c;提高查询速度 1.3 索引的分类 a.普通索引 最基本的索引&#xff0c;对字段数据的类型和值没有任何限制&#xff0c;数据类型可以任意&#xff0c;…

电脑技巧:Win10自带的6个实用功能,你都会用吗

目录 1、系统自带计算器 2、Win10自带截图功能 3、 Win10自带的手写输入 4、历史剪贴板 5、定时提醒 6、自带录屏功能 1、系统自带计算器 系统里自带了一个计算器大家都知道&#xff0c;打开是这个样子。 但当你点击计算器左上角的三个横杠图标后会发现这个计算器功能非常强大。…

Python画爱心——谁能拒绝用代码敲出来会跳动的爱心呢~

还不快把这份浪漫拿走&#xff01;&#xff01;节日就快到来了&#xff0c;给Ta一个惊喜吧~ 今天给大家分享一个浪漫小技巧&#xff0c;利用Python制作一个立体会动的心动小爱心 成千上百个爱心汇成一个大爱心&#xff0c;从里到外形成一个立体状&#xff0c;给人视觉上的冲击…

phy层深入了解编码

1&#xff0c;我们知道mac层通过MDI来访问phy层的&#xff0c;那么phy层到光模块数据是怎么处理的呢。从下面这个图中可以看出基本的关系&#xff1a; serdies接口说明&#xff1a; Medium Independent Interface (MII): 介质无关接口。提供公共接口&#xff0c;屏蔽多个物理…

基于haproxy负载均衡实现lamp与apache的高可用

环境准备 IP主机名服务系统192.168.47.10node1ansiblecentos8192.168.47.20node2lampcentos8192.168.47.30node3apachecentos8192.168.47.40node4haproxycentos8 基于上一篇的文章在node3主机上部署apache 一、部署haproxy 准备主机清单组织 //创建角色 [studentserver rol…

服务器没网 利用本地机器反向隧道 设置conda代理配置环境

适用情况 S是局域网内服务器&#xff0c;无法联网。 C为本地机器&#xff0c;可以通过ssh链接服务器。 本篇文章主要为了可以让S可以借用C的网络进行conda环境配置&#xff0c;所采取的设置。 1.利用Xshell建立反向隧道 在连接设置的ssh中点击隧道&#xff0c;点击设置&#…

SpringBoot--网上商城项目(前端搭建、首页、用户登录、盐加密、登录令牌管理)

文章目录 一、项目技术点 数据表 二、构建SpringBoot项目 1、创建SpringBoot项目并配置pom 配置pom 2、application.yml的配置 3、首页访问 三、首页功能 工具类&#xff01;&#xff01;&#xff01; 首页数据绑定语法 四、用户明文登录 五、前端及数据库密码加密 …

C. String Transformation 1(图的思想)

Problem - 1384C - Codeforces 题意: 考拉有两个长度相同的字符串A和B&#xff08;|A||B|n&#xff09;&#xff0c;由前20个小写英文字母组成&#xff08;即从a到t&#xff09;。 在一步棋中&#xff0c;Koa。 (选择A的某个位置子集p1,p2,...,pk&#xff08;k≥1;1≤pi≤n;…

Codeforces Round #831 (Div. 1 + Div. 2)

A. Factorise NM 题目链接&#xff1a;Dashboard - Codeforces Round #831 (Div. 1 Div. 2) - Codeforces 样例输入&#xff1a; 3 7 2 75619样例输出&#xff1a; 2 7 47837题意&#xff1a;给定一个质数&#xff0c;让我们输出一个质数使得这两个数相加为一个合数。 分…

基于Java的飞机雷电射击游戏的设计实现(Eclipse开发)

目 录 摘 要 I Abstract II 1 引言 3 1.1 项目背景 3 1.2 电脑游戏的发展历史 3 1.3国内游戏项目研究现状 5 1.4项目主要工作 6 1.5本文组织结构 7 1.6 电脑游戏的策划 7 2 开发平台与开发技术 8 2.1 Eclipse 8 2.2 Eclipse平台 8 2.3 Java 9 2.4游戏图形界面的开发基础 11 2.5…

redis启动和简单使用

redis启动和简单使用 1.redis启动 1.1 找到redis解压的位置,在里面输入cmd回车 1.2 输入redis-server redis.conf指令,然后回车,出现如下界面 注意&#xff1a;该界面不能关闭了 1.3 再进入一次redis解压的位置 输入cmd回车 1.4 输入redis-cli指令后的结果 1.5 补充 当出现…

Flink系列文档-(YY05)-Flink编程API-多流算子

1 多流连接 connect connect连接&#xff08;DataStream,DataStream→ConnectedStreams) connect翻译成中文意为连接&#xff0c;可以将两个数据类型一样也可以类型不一样DataStream连接成一个新的ConnectedStreams。需要注意的是&#xff0c;connect方法与union方法不同&…

Hadoop高手之路3-Hadoop集群搭建

文章目录Hadoop高手之路3-Hadoop集群搭建一、集群的规划二、再准备两台虚拟机作为服务器1. 根据hadoop001克隆出hadoop002和hadoop0032. 配置hadoop002和hadoop0031) 启动hadoop002虚拟机并登录2) 配置ip地址3) 重启网络服务器&#xff0c;查看ip4) 远程连接hadoop0025) 修改主…

数据库自增ID用完了会怎么样?

有主键 如果设置了主键&#xff0c;并且一般会把主键设置成自增。 Mysql里int类型是4个字节&#xff0c;如果有符号位的话就是[-231,231-1]&#xff0c;无符号位的话最大值就是2^32-1&#xff0c;也就是4294967295。 创建一张表&#xff1a; CREATE TABLE test1 (id int(11…

人脸识别技术趋势与发展

人脸辨识 —— 引人入胜 很少有生物辨识技术能像脸部辨识那样激发我们的想象力。 同样&#xff0c;它的到来在 2020 年引发了深刻的担忧和令人惊讶的反应。 脸部辨识的工作原理 脸部辨识是使用脸部辨识或验证人的身份的过程。它根据人的脸部细节捕获、分析和比较模式。 人…

Restful风格的编程

Restful风格的编程1、 Restful简介2、查询用户以及用户详情2.1常用注解2.2查询用户详情3、处理创建请求3.1RequestBody注解3.1.1用途3.1.2语法规范3.2日期类型的处理3.3BindingResult4、用户信息修改与删除4.1用户信息修改4.2案例前端界面后端控制器1、 Restful简介 Restful比…

剑指offer(C++)-JZ69:跳台阶(算法-动态规划)

作者&#xff1a;翟天保Steven 版权声明&#xff1a;著作权归作者所有&#xff0c;商业转载请联系作者获得授权&#xff0c;非商业转载请注明出处 题目描述&#xff1a; 一只青蛙一次可以跳上1级台阶&#xff0c;也可以跳上2级。求该青蛙跳上一个 n 级的台阶总共有多少种跳法&…

【JavaSE】类与对象(上)类是什么?对象是什么?

文章目录面向过程与面向对象认识类和对象创建类类的实例化内存分布注意事项总结面向过程与面向对象 我们说C语言是面向过程的编程语言&#xff0c;而Java是面向对象的编程语言&#xff0c;那究竟什么才是面向过程与面向对象呢&#xff1f;我们举一个例子来帮助大家理解&#x…

PX4飞行测试

文章目录前言一、首次飞行指南飞行入门解锁飞机起飞降落飞行控制/命令辅助飞行任务飞行规划任务设置机体航向设置航点/转弯半径地理围栏故障保护地理围栏地理围栏规划安全点(集结点)创建/定义安全点地形跟随/保持地形跟随地形保持前言 本节包含有关飞行&#xff08;完全配置过…

虚拟主播也带货?直播电商的变与不变

5月6日晚&#xff0c;海外虚拟主播vox在B站开启了中国直播首秀。从最终数据来看&#xff0c;直播1.7小时&#xff0c;营收111万人民币&#xff0c;当晚还登上平台热门首位&#xff0c;这样的直播吸金能力&#xff0c;让不少明星都望尘莫及。 更值得关注的是&#xff0c;直播间…