とあるエンジニアの備忘録

SE・コンサルタントの備忘録

git 備忘

環境:ubuntu

git install sa

sudo apt-get -y install git

リポジトリをclone

 git clone

localでリポジトリ作成しremoteにpush

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:ID名/~.git
git push -u origin master

localからremoteにpush

git remote add origin git@github.com:ID名/~.git
git push -u origin master

remote にpush

git push origin master

local へのコミット

git add *
git commit -m