8000 GitHub - QWenQ/myGit: A simple distributed version control system, like Git · GitHub
[go: up one dir, main page]

Skip to content
< 7FFF script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2FGitHub.com%2FQWenQ%2FmyGit","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=QWenQ%2FmyGit","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://GitHub.com/QWenQ/myGit\",\"user_id\":null}}","auth_hydro_click_hmac":"b76cb58a66b19a3c2c2507f8b4fc0103a4d416ce372abe5f23481adde4618dd8"}}
QWenQPublic

About

A simple distributed version control system, like Git

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

myGit

Intro

A simple version control system, like Git for local control.

The program named gitlet will support the commands: init, add, commit and so on. The specific usage of gitlet is descriped in the file design_pattern.md.

Environment

Language: C++17 Python3(test)

OS: Ubuntu 22.04 LTS

Compiler: g++ 11.3.0

Lib: boost(serialization)

Run

run the program

make gitlet
./gitlet [command]

Test

Run a single test, within the testing subdirectory, run the command

cd testing/
make gitlet
python3 tester.py --verbose samples/FILE.IN ...

where FILE.IN ... is a list of specific .in files you want to check.

The command

python3 tester.py --verbose --keep samples/FILE.in

will, in addition, keep around the directory that tester.py produces so that you can examine its files at the point the tester script detected an error. If your test did not error, then the directory will still remain there with the final contents of everything.

About

A simple distributed version control system, like Git

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0