git clone から push まで
いつもgit cloneからpushするまでの手順がうろ覚えで不安になるのでメモ
まずclone
git clone {URL}
branchの一覧
git branch -a
更新したいbranchが既にある場合は
git checkout {branch}
ない場合は
git branch -b {branch}
リモートブランチに登録
git push -u origin {branch}
変更したファイルを指定
git add {file}
変更をcommit
git commit -m '{comment}'
push
git push orgin {branch}