😱
ガチで最低限のGitHubコマンド
git clone https://~~~~~(githubからコピペで持ってくる)
git pull origin {main,master,etc...}
git switch -c <作成するブランチ名>
git add .
git commit -m "comment about this commit"
git push origin <ブランチ名>
| command | description |
|---|---|
| clone | リモートリポジトリへ接続 |
| pull | リモートの環境をローカルに持ってくる |
| swithc | ブランチを分ける |
| add | 変更があったファイルをコミットの対象にする |
| commit | 変更を記録する |
| push | ローカルからリモートに上げる |
ミスってaddしちゃった時のやつ
git reset <変更を取り消したいファイルパス>
Discussion