DEV Community

hirooka kazuya
hirooka kazuya

Posted on

summary of git management

initial build of git repository

local git

cd (project root directory)

git init

git add .

git commit -m "Initial commit"

git hub on web

making github repository on my account

copying the URL of the repository

git remote add origin (URL)

git remote -v

git push -u origin main

update of existing git repository

git status

git add .

git commit -m "コミットメッセージ"

git push

Top comments (0)