【文件属性】:
文件名称:lection_git_hw
文件大小:506KB
文件格式:ZIP
更新时间:2021-03-31 06:09:49
Shell
lection_git_hw
创建名为lection_git_hw的本地存储库
$ mkdir lection_git_hw
$ cd lection_git_hw
$ git init
在此仓库中创建文件“作业”,并将其提交到master分支中
$ touch homework
$ git add homework
$ git commit -m "Made: create file homework"
创建分支“ hw_git”,然后在文件中插入任何内容,然后将这些更改提交到该分支
(master) $ git branch
* master
$ git branch hw_git
(master)$ git branch
hw_git
* master
(master)$ git checkout hw_git
Switched to branch 'hw_git'
(hw_git
【文件预览】:
lection_git_hw-hw_git
----homework(41B)
----3_gitlab.tar(877KB)
----.travis.yml(44B)
----temp_file(0B)
----README.md(2KB)
----hello.sh(19B)