2020/4/5 week summary

Hello everyone.
I am learning git this week, I just watched the video of Shang Silicon Valley to learn. I took some video materials today. I will take time to learn pr next week and solve the video materials. Below are my git notes, some have not been sorted out yet, and will continue to be updated when finished.
Linux basic commands:
echo "text content": output information to the console
ll: tile the sub-files & sub-directories in the current directory on the console
find directory name: tile the descendant files & sub-directories under the corresponding directory in the control Taiwan
find directory name -type f: for the files in the directory, tile in the console
rm file name: delete file
mv source file rename file: rename the
cat file url: view the content of the corresponding file the
vim file url (in English Mode):
Press i to enter insert mode to edit the file.
Press esc & press: to execute the command
q! Force exit (not save)
wq Keep exit
set nu Set line number

##initialization:

git config --global uesr.name "Alan"
git config --global user.email [email protected]

##area:

工作区
暂存区
版本区

##git object:

git init 创建初始仓库
echo '内容' >a.text     *向文件写入新内容
git hash-object  a.text  返回键值
git hash-object -w a.text 写入数据库
find .git/objects -type f  *查看数据内容  > .git/objects/b4/8a012cb518bbdc083c4d0a391640d48e9768f9
				  .git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391

git cat-file -p b48a012cb518bbdc083c4d0a391640d48e9768f9 根据键值查看具体内容 

git cat-file -t b48a012cb518bbdc083c4d0a391640d48e9768f9  根据键值查看数据类型

blob

Guess you like

Origin blog.csdn.net/weixin_45834446/article/details/105335068