{"id":19384854,"url":"https://github.com/xiaokyo/git-study","last_synced_at":"2025-07-29T23:32:37.237Z","repository":{"id":106050374,"uuid":"177506385","full_name":"xiaokyo/git-study","owner":"xiaokyo","description":"learn git commands","archived":false,"fork":false,"pushed_at":"2019-12-19T02:45:30.000Z","size":316,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-08T03:26:56.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaokyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-25T03:17:28.000Z","updated_at":"2023-11-28T13:33:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"aaffb56d-f0cd-44f3-8a6d-7b7ab6855931","html_url":"https://github.com/xiaokyo/git-study","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xiaokyo/git-study","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaokyo%2Fgit-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaokyo%2Fgit-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaokyo%2Fgit-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaokyo%2Fgit-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaokyo","download_url":"https://codeload.github.com/xiaokyo/git-study/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaokyo%2Fgit-study/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779974,"owners_count":24143200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:32:42.357Z","updated_at":"2025-07-29T23:32:37.189Z","avatar_url":"https://github.com/xiaokyo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# learn git commands\n    git commit -m \"frist commit\"\n\n\n忘记添加文件index.js,你可以执行下面的命令\n\n    git add index.js\n    git commit --amend // 修改最后一条commit信息\n\n获取master分支最新的commit和本地的仓库进行合并\n\n    git pull origin master \n\n设置新的远程仓库url\n\n    git remote set-url origin \u003curl\u003e\n\n指定分支上传拉取 不用每次指定操作的分支\n    \n    git branch --set-upstream-to=origin/test test\n\n回退版本强制提交\n\n    git reset --hard e377f60e28c8b84158\n    git push -f origin dev\n\n获取单次提交的commit修改\n\n    git log --online -3\n    git cherry-pick 2555c6e\n    // 有冲突解决后\n    git cherry-pick --continue\n    // or\n    git cherry-pick 2555c6e -n\n    // 不自动提交\n\n修改本地分支名称\n\n    git branch -m \u003cold name\u003e \u003cnew name\u003e\n\n# git tree\n![git tree](https://github.com/xiaokyo/git-study/blob/master/git_tree.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaokyo%2Fgit-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaokyo%2Fgit-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaokyo%2Fgit-study/lists"}