#author("2022-04-12T11:08:33+00:00","default:admin","admin") *基礎 [#z8cd5b0d] -[[サル先生のGit入門:https://backlog.com/ja/git-tutorial/]] -[[“マンガでわかるGit”の記事一覧:https://next.rikunabi.com/journal/tag/webdesign-manga/]] -[[【連載】マンガでわかるGit~コマンド編~:https://www.r-staffing.co.jp/engineer/archive/category/%E3%83%9E%E3%83%B3%E3%82%AC%E3%83%BBGit]] -[[目指せ!脱初心者 Gitの基本を図解で解説:https://and-ha.com/coding/beginners-guide-basics-git/]] **fetch, merge, pull [#q9c11e42] -[[マンガでわかるGit 第8話「GitHubを使ってみよう push・pull編」:https://next.rikunabi.com/journal/20161209_t12_iq/]] -[[マンガでわかるGit 9話「pullの正体はfetch+mergeだった?」:https://next.rikunabi.com/journal/20170120_t12_iq/]] ***fetch [#d9b7b08d] -fetchは、リモートリポジトリから更新内容をダウンロードしてきて、ローカルリポジトリ内のリモート追跡ブランチを更新する -リモート追跡ブランチ(origin/ナントカ)が更新されるだけ -この時点ではローカルブランチは更新されていない ***merge [#e7625aea] -mergeすることで、はじめてローカルブランチが更新される -First-Forward -Auto-Merge ***pull [#bb1359c2] -「fetchしてからmerge」は、開発の中で頻繁に行われる -fetchとmergeを合わせた機能がpull *ソフトウェア [#m71dd0fa] **Git [#k7cc0090] **[[Sourcetree:https://www.sourcetreeapp.com/]] [#b0dc6729] **GitHub Desktop [#ye565686] **TortoiseGit [#db69b1c2] **GitKraken [#a1f81b05] *書籍 [#ha1b4a9f] ***サルでもわかるGit入門 [#r868af97] -[[サポートページ:https://book.impress.co.jp/books/1118101032]] *環境構築 [#hf6e0e72] **プロキシ [#h4841719] -会社などプロキシ環境では必要 -[[【mBaaS】 初期設定 ~プロキシ接続をしてgitからcloneする~:https://qiita.com/oonoyosp/items/3877dcb8cf8823f3d9b4]] **[[Git for Windows:https://gitforwindows.org/]] [#j6013b17] -[[私家版 Git For Windowsのインストール手順:https://opcdiary.net/technical/programming/%e7%a7%81%e5%ae%b6%e7%89%88-git-for-windows%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%89%8b%e9%a0%86/]] *diff [#b5e0c965] -[[git diff を徹底攻略!よく使う便利オプションまとめ、完全版。:http://www-creators.com/archives/755]] * gibo [#ub30f2ae] -[[gibo – .gitignoreの雛形を素早く作成できるコマンドラインツール:http://www.softantenna.com/wp/review/gibo/]] -インストール $ brew install gibo -指定項目のリスト表示 $ gibo -l -.gitignore 新規作成(macOS, Xcode, Vim の3つを指定) $ gibo macOS Xcode Vim > .gitignore -追加 $ gibo Swift >> .gitignore *Tips [#ya173144] -[[Gitのリポジトリ(履歴)を初期化する:https://qiita.com/mktshhr/items/578cc5b5aea5b3ed9303]] -[[ローカルのプロジェクトをGitHubへアップロードする方法:https://qiita.com/devzip8/items/28ac253ea295ad6c2b73]] *トラブルシューティング [#p378791d] **コミット取り消し [#f7e17d1a] -[[[Git]コミットの取り消し、打ち消し、上書き:https://qiita.com/shuntaro_tamura/items/06281261d893acf049ed]] -[[【git】マージしたけどやっぱりやめたい時のやり方4種類:https://qiita.com/chihiro/items/5dd671aa6f1c332986a7]] **コンフリクト [#mf085b1a] -[[Git コンフリクト解消手順:https://qiita.com/crarrry/items/c5964512e21e383b73da]] **detached HEAD [#f3069645] -[[第19話 detached HEAD 状態って何?ブランチがない状態を解決する方法 【連載】マンガでわかるGit~コマンド編~:https://www.r-staffing.co.jp/engineer/entry/20201225_1]] -[[【Git】detached HEADは友達。元に戻す方法や使い方(detached HEADとは何か?の意味を理解して焦らず対応):https://prograshi.com/general/git/detached-head/]] **SSL certificate problem: Unable to get local issuer certificate [#oe3b83bf] **Please make sure you have the correct access rights and the repository exists. [#s7042006] -[[Gitで自分のbitbucketの非公開レポジトリからクローンできなくなった:https://applingo.tokyo/article/3391]] -[[githubからcloneするときにPermission denied (publickey)エラーが発生する:https://hacknote.jp/archives/14711/]] --[[ssh-agentを使ってgithubへssh接続する:https://qiita.com/ggg-mzkr/items/fd32e1a6b7353ca52d3c]] -[[gitでPlease make sure you have the correct access rights and the repository exists. が出た時の対処法:https://qiita.com/GakuNaitou/items/81dbbd3ea6211af71648]] -[[【解決方法(画像付き)】急に。git pushしたら「Please make sure you have the correct access rights and the repository exists.」:https://kenjimorita.jp/please-make-sure-you-have-the-correct-access-rights-and-the-repository-exists/]] -[[認証は通っているのにGitでGitHubリモートリポジトリにアクセスすると Permission denied になる問題の原因:https://noraworld.hatenablog.com/entry/fix-that-git-throws-permission-denied]] -[[【git エラー解決策】Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. が出た時の解決方法:https://tusukuru.hatenablog.com/entry/2018/08/29/021651]] -[[【git pushエラー】: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. の対処策:https://papa-programing.jp/git-push-error/]] -[[GitHub解決方法『fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.』Pushできない!:https://shibaemon.com/github-push-fatal/]] -[[ssh内でgit cloneをした際のpermission deniedを解決する:https://www.furusato-s.co.jp/press/2020/06/22/ssh%E5%86%85%E3%81%A7git-clone%E3%82%92%E3%81%97%E3%81%9F%E9%9A%9B%E3%81%AEpermission-denied%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%99%E3%82%8B/]] -[[GitHubにpushやpullできなくなったときの対処法:http://post.tetsuji.jp/2013/11/solution-of-github-io-disabled/]] ***git-upload-pack [#aacd406f] -[[git for windowsに対してWindows版OpenSSHを使ってリモートからリポジトリのclone/pushする方法:http://tdf.or.jp/d/git-for-windows%E3%81%AB%E5%AF%BE%E3%81%97%E3%81%A6windows%E7%89%88openssh%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E3%81%8B%E3%82%89%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88/]] -システムの環境変数に「C:\Program Files\Git\mingw64\bin」を追加して sshd を再起動 ***does not appear to be a git repository [#ca777454] -[[Herokuにpush時にdoes not appear to be a git repository出た時の対処:https://qiita.com/sayama0402/items/e2c9e65786259dc55e11]]