atomSS-1 / DataStructuresStudyNote

1 stars 0 forks source link

my work flow of git #3

Open atomSS-1 opened 4 years ago

atomSS-1 commented 4 years ago

list work flow of git

atomSS-1 commented 4 years ago

push changed file from local to remote

case 0:

if there is remote repo already

git clone [reomte URL] to local

case 0-1:

git add .

stage changed or updated files

case 0-2: git commit -m [commit message]

commit change

case 0-3: git push remote url

case 1:

if there is there is no repo on remote host (if no initialized readme.md file)

case 1-1:

git add .

stage changed or updated files

case 1-2: git commit -m [commit message]

commit change

case 1-3: git push remote url

atomSS-1 commented 4 years ago

git init create git repository

atomSS-1 commented 4 years ago

new fact it is same notion word repository in remote or on local