gitとコマンドライン
文書の過去の版を表示しています。
Gitとコマンドライン
Git
https://www.r-staffing.co.jp/engineer/entry/20190621_1
第1話 リポジトリを作ってコミットしてみよう【連載】マンガでわかるGit ~コマンド編~
20190621
https://shuzo-kino.hateblo.jp/entry/2017/02/18/231955
2017-02-18
git checkoutで特定のコミットまで戻る/特定ブランチの先頭まで戻る
コミットID XXXYYYZZZまで戻りたい場合
git checkout XXXYYYZZZ
checkoutコマンドに -b オプションを指定して実行すると、ブランチの作成とチェックアウトをまとめて行うことができる(リンク)
git checkout -b <branch>
masterとmain (本当に面倒)
https://qiita.com/ststs/items/6e7773aa33107652e69e
@ststs
更新日 2021年05月03日
Gitの初期設定時にmasterからmainへbranch名を変更できない場合の対処法
https://qiita.com/muraikenta/items/e590a380191971f9c4c3
@muraikenta(株式会社Anycloud)
更新日 2015年08月09日
全ブランチをリモートリポジトリからpullする
→ 全てのbranchを取得する方法(git cloneだと、master(main)ブランチしかダウンロードされない)
$ for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done $ git fetch --all $ git pull --all
コマンドライン
cat 中身を見る
gitとコマンドライン.1651866859.txt.gz · 最終更新: 2022/05/06 by adash333