{"id":18008372,"url":"https://github.com/tanakaworld/gittutorial","last_synced_at":"2026-01-19T11:01:15.295Z","repository":{"id":11117991,"uuid":"13476276","full_name":"tanakaworld/GitTutorial","owner":"tanakaworld","description":"GitTutorial","archived":false,"fork":false,"pushed_at":"2013-12-04T13:54:38.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-23T10:03:26.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tanakaworld.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-10-10T16:09:31.000Z","updated_at":"2013-12-31T11:58:26.000Z","dependencies_parsed_at":"2022-09-23T17:40:49.428Z","dependency_job_id":null,"html_url":"https://github.com/tanakaworld/GitTutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tanakaworld/GitTutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2FGitTutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2FGitTutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2FGitTutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2FGitTutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanakaworld","download_url":"https://codeload.github.com/tanakaworld/GitTutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2FGitTutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-30T01:18:25.974Z","updated_at":"2026-01-19T11:01:15.277Z","avatar_url":"https://github.com/tanakaworld.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitTutorial\n\n## Command\n+ `$ git init`\n+ `$ git add .`\n+ `$ git commit -a`\n+ `$ git commit -m \"comment\"`  // コメント付きコミット\n+ `$ git branch -a`  // ローカル・リモートブランチ一覧表示\n+ `$ git branch \u003cbranch_name\u003e`  // 新規ブランチ作成\n+ `$ git branch -d hoge`  // ローカルブランチ削除\n+ `$ git push :hoge`      // リモートブランチ削除\n+ `$ git rm -rf --cached [name]`  // トラック対象から除く（.gitignoreをaddした後に無効にする場合）\n+ `$ git checkout \u003cbranch_name\u003e`  // ブランチの切り替え\n+ `$ git checkout -b \u003cbranch_name\u003e`  // 新規ブランチ作成とブランチ切り替え\n+ `$ git checkout -b \u003clocal_branch_name\u003e \u003cremote_branch_name\u003e`  // master以外のリモートブランチ取得\n+ `$ git tag -a \u003ctag_name\u003e -m \"comment\"`  // タグの作成\n+ `$ git fetch [repository_name]`  // \n+ `$ git merge [repository_name]`  //\n+ `$ git merge [repository_name/branch_name]`  //\n+ `$ git pull [repository_name/branch_name]`  // fetch, merge を同時にやる\n+ `$ git push [repository_name] [branch_name]`\n+ `$ git push origin [tag_name]` // tag の push\n+ `$ git push origin --tags` // ローカルリポのタグでリモートにないものすべてを転送\n+ `$ git stash [save] [-m \"comment\"]` // 現在のワークツリーを一時的に保存する（uncommited changes だけど、checkout して後に commit したい場合など）\n+ `$ git stash list`\n+ `$ git stash pop [stash@{0}]` // 任意のスタッシュを復元\n+ `$ git rebase -i [branch-name]~[commit number]` // コミットを統合したりする squash など\n\n\n## Cherry Pich\n\n### feature ブランチの内容を develop に統合する\n+ 作業してた feature ブランチにいる\n+ develop ブランチの内容を最新に更新する\n+ `$ git checkout debelop`\n+ `$ git pull origin/develop`\n+ feature に戻って develop に rebase\n+ `$ git git checkout feature/\u003cfeature-name\u003e`\n+ `$ git git rebase deveop`\n+ Conflict することがある\n+ `$ git push -f origin \u003cfeature-name\u003e`\n+ develop に対して pull request する\n\n## [Git-Flow](http://danielkummer.github.io/git-flow-cheatsheet/index.ja_JP.html \"GitFlow\")\n\n## Tips\n\n### .gitignore\n+ [VisualStudioで.csprojがコンフリクトしないように](http://stackoverflow.com/questions/13479294/why-are-my-csproj-files-getting-messed-up-after-a-git-rebase)\n\n### Alias\n\n以下のコマンドでエイリアスが作成できる\n\n`git config --global alias.\u003cshort-cut-command\u003e \"\u003cnormal-command\u003e\"`\n\n| Normal | ShortCut | Command Detail |\n|:-----------|------------:|:------------:|\n| branch -a     | br-a |    全ブランチ表示    |\n| commit -a | cm-a | コミット（Vimでコメントを書く）|\n| status | st | ステータス |\n| checkout | cko | チェックアウト |\n| log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'| log-all | SourceTree |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanakaworld%2Fgittutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanakaworld%2Fgittutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanakaworld%2Fgittutorial/lists"}