gitとgithubに関する学びの共有 - preYahooHackUteam12/Recipe-Gacha GitHub Wiki
- git init
- .gitファイルの作成
- git clone (repo)
git clone --mirror <SOURCE_REPOSITORY_URL>
cd <REPOSITORY>
git push --mirror <DESTINATION_REPOSITORY_URL>
- git branch (branch)
- gitのブランチを作成したり消したり確認したりできる。
- git switch (branch)
- 最近出たよ。checkoutができること多すぎてブランチを変更するのは、switch。
- git checkout -b (branch)
- git branch -d
- git status
- git add
- git commit
- git commit -m
- git merge (branch)
- git log
- git reset
- git stash
- git push (repo) (branch)
- git pull (repo) (remote branch)
- git fetch
- リモートブランチを引っ張る。
- git fork
- クローンとほぼ同じ。プルリク可能・自分のgithubにリポジトリ作成可能、だから便利といえば便利。
- git push -u
- デフォルトブランチにする。はじめのときだけ使おうね。
- git remote add (name) (repo)
- git remote set-url (name) (repo)
- git diff
- 差分を見よう。
- git grep
- ファイル探せるよ。
origin について
HEAD について