0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

gitがダメないくつかの理由

Last updated at Posted at 2022-10-19

gitのダメなところを記載する

  • 品質が悪い
    • pythonのパッケージ?とかもともと突っ込んで、普通に使ってたら3000?10000コミットとかになったらcloneで固まるようになった。こんなん仕事で使えるの?
      ※ 下は試しにcloneを分解して実行してみたところctrl-cたまにfetch完了してる

      $ git fetch --depth 1
      remote: Counting objects: 727, done
      remote: Finding sources: 100% (727/727)
      remote: Total 727 (delta 31), reused 554 (delta 31)
      Receiving objects: 100% (727/727), 1.21 GiB | 13.53 MiB/s, done.
      Resolving deltas: 100% (31/31), done.
      

      → これあれだな、リモートをsshで拾うときの問題だな
      → あれかsshの何かのタイムアウトかてことはsshプロトコルのエラー実装がごみざるなgitがギルティ

    • 設計思想がだめ
      なんだろうな、ワーキングコピー、ステージング、ローカルリポジトリのHEAD、リモートリポジトリのHEADとfetchされたリモートリポジトリのHEADがあってそれぞれのコマンドがどれにアクセスしてるかわからんgit diffはどれとどれを比較してるんだい?

    • git diff の引数でもわかる

      git diff ファイル名
      git diff コミットID1 コミットID2 ファイル名
      

      → git statusがワーキングとリモートとのチェックをしないのが感覚とずれてるんだな
      ことごとく感覚と違う動きをする

CUIじゃなかったらそんなに違和感は無いのだろうか

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?