Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于最后成果的功能 #15

Open
callumyang opened this issue Jan 5, 2021 · 1 comment
Open

关于最后成果的功能 #15

callumyang opened this issue Jan 5, 2021 · 1 comment

Comments

@callumyang
Copy link
Collaborator

最后成果:
实现命令行交互,分支,回滚
命令行交互实现:
使用Scanner传送命令
分支功能实现:

  • 创建一个文件夹,文件夹命名为branch,文件夹中的每个文件是各个分支的信息(初始状态下,branch文件夹中有一个名为main的空文件)
  • 每新建一个分支,在branch文件夹中增加一个以该分支名命名的文件,每次commit将commit的key写入对应的分支文件中
  • 每次commit将其对应的分支名写入head文件中
    回滚功能:
    找到需要回滚的commit的key,然后回滚,再修改head
@Skyseaee
Copy link
Owner

Skyseaee commented Jan 5, 2021

以及切换分支、删除分支
修改userName
读取当前仓库状态更新git对象属性等功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants