IT Guy

IT、AI / Machine Learning、IoT、Project Management、プログラミング、ITIL等々

git基本コマンド

初期化
git init
追加、コミット
git add <file>
git add .
git add --all
git commit -m "Commit comments"
チェックアウト/branch
git checkout
git checkout <branchname>
 
git branch
git branch -a
Undo
git reset HEAD <file>
ステータス確認
git status
git log
github
git clone URL
git clone -b <branchname> URL
git clone --mirror URL .git
git checkout -b <local branchname> <branch original>