diff --git a/.github/workflows/2022-finalproject.yml b/.github/workflows/2022-finalproject.yml index 3d355828..e69de29b 100644 --- a/.github/workflows/2022-finalproject.yml +++ b/.github/workflows/2022-finalproject.yml @@ -1,31 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: path-check - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the master branch - [pull_request, workflow_dispatch] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - check: - if: contains(github.event.pull_request.labels.*.name, '2022-finalproject') - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - uses: dorny/paths-filter@v2 - id: changes - with: - filters: | - src: - - '!(2022-finalproject/**)' - # run only if some file in 'src' folder was changed - - if: steps.changes.outputs.src == 'true' - run: exit 1 diff --git a/2022-finalproject/cjj/README.md b/2022-finalproject/cjj/README.md new file mode 100644 index 00000000..271a88a4 --- /dev/null +++ b/2022-finalproject/cjj/README.md @@ -0,0 +1,16 @@ +## 2022先导课总结 + +跟着DynamicX团队学习的这段课程里,我受益良多。 + +作为一个从没接触过Linux的小白,我学着自己将电脑变成双系统,学着使用终端遍历自己的电脑, + +学会使用vim编辑文件,学着利用指令整理数据,还学会了使用git和GitHub来与其他成员进行开发。 + +这些知识无论是对于我今后的学习,还是以后的工作来说都有莫大的帮助。 + +我很庆幸自己能有机会接触这些知识,也感谢有团队愿意传授我这些知识。 + +希望今后的自己能够学到更多。 + +--- +**视觉组 陈嘉杰** \ No newline at end of file diff --git a/2022-finalproject/cjj/photos/1.jpeg b/2022-finalproject/cjj/photos/1.jpeg new file mode 100644 index 00000000..787c3abf Binary files /dev/null and b/2022-finalproject/cjj/photos/1.jpeg differ diff --git a/2022-finalproject/cjj/photos/2.jpeg b/2022-finalproject/cjj/photos/2.jpeg new file mode 100644 index 00000000..dffd7570 Binary files /dev/null and b/2022-finalproject/cjj/photos/2.jpeg differ diff --git a/2022-finalproject/cjj/photos/3.jpeg b/2022-finalproject/cjj/photos/3.jpeg new file mode 100644 index 00000000..a6ae7d47 Binary files /dev/null and b/2022-finalproject/cjj/photos/3.jpeg differ diff --git a/2022-finalproject/cjj/work.md b/2022-finalproject/cjj/work.md new file mode 100644 index 00000000..72c2bb96 --- /dev/null +++ b/2022-finalproject/cjj/work.md @@ -0,0 +1,25 @@ +## 回答 + +### 问题一 +- 使用 "git restore --staged <文件>..." + +- git reset HEAD --. + +- git rm --cached filename + +![2.jpeg](2.jpeg) + +### 问题二 +- 使用git revert -n +版本号 + +- 先用git log查看提交的commit id,复制最后一次提交的commit id,使用git reset --hard +commit id恢复 + +![1.jpeg](1.jpeg) + + +### 问题三 +- git commit --amend + +- git rebase -i + +![3.jpeg](3.jpeg) \ No newline at end of file