{"id":23333919,"url":"https://github.com/schultyy/git-cheatsheet","last_synced_at":"2025-07-26T00:03:52.229Z","repository":{"id":10225060,"uuid":"12324437","full_name":"schultyy/git-cheatsheet","owner":"schultyy","description":"My most used git commands","archived":false,"fork":false,"pushed_at":"2013-08-26T05:52:56.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T09:59:14.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/schultyy.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}},"created_at":"2013-08-23T14:03:50.000Z","updated_at":"2013-12-31T11:01:46.000Z","dependencies_parsed_at":"2022-09-19T09:31:11.653Z","dependency_job_id":null,"html_url":"https://github.com/schultyy/git-cheatsheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schultyy/git-cheatsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Fgit-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Fgit-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Fgit-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Fgit-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schultyy","download_url":"https://codeload.github.com/schultyy/git-cheatsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultyy%2Fgit-cheatsheet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267089887,"owners_count":24034259,"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-25T02:00:09.625Z","response_time":70,"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-12-21T00:32:56.207Z","updated_at":"2025-07-26T00:03:52.164Z","avatar_url":"https://github.com/schultyy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-cheatsheet\n\n## git \u0026 svn\n\n### Clone svn repository\n\n  git svn clone https://path/to/your/repository --stdlayout\n  \n`stdlayout` specifies, that `trunk`, `tags` and `branches` are being cloned. \n\n**Note that this operation takes some time (hours)**\n\n### Get new branches from svn\n\n    git svn fetch\n  \n### Get latest changes from svn\n\n    git svn rebase\n  \n### Commit to svn\n\n    git svn dcommit\n\n## git\n\n### Restore to a previous point\n\n    git reflog\n    git reset --hard \u003chash\u003e\n    \n### Create patch\n\n    git format-patch master --stdout \u003e my-patch.patch\n  \n### Change commit message after commit\n\n    git commit --amend -m \"new message\"\n\n### Stash specific files\n\n    git add \u003cfile\u003e\n    git stash\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultyy%2Fgit-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschultyy%2Fgit-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultyy%2Fgit-cheatsheet/lists"}