] by Don Sagrott, founder @sospep.com - this article outlines some common use case scenarios for working with git SCM software and remote code hosting repo's like github.com
[WHY]
]
[WHERE]
] READ THE FULL ARTICLE
] see the EXAMPLE section below
[WHEN]
] 2017-05-01
[EXAMPLE]
[SCENARIO-001] CREATE a new repo on your local machine, then PUSH it to your own hosted REMOTE repo
[00:00] EXAMPLE OUTLINE PROCESS = # steps, ]
] using bash, navigate to the directory where you wish to copy the files into
] git init,
] git add,
] git commit
] git push ( from local to your remote repo)
] git pull ( from remote repo to your local machine)
[EXAMPLE =]
] sospep/guide
[SCENARIO-002] CLONE an existing repo to your local machine, then PUSH your UPDATES back to the orig repo
[00:00] EXAMPLE OUTLINE PROCESS = # steps, ]
] using bash, navigate to the directory where you wish to copy the files into
] git clone {path}
] EDIT source
[00:00] NEW task
x] launch bash and navigate to the directory where you want the repo to exist on your local machine
x] > sh.exe --login
[00:00] NEW task
] ENTER the following command in bash, where {path} is the URL generated by the 'clone' button in github
] git clone {URL-cool-git-project}
] git clone http://github.com/tastejs/todoMVC.git
[00:00] NEW task EDIT SOURCE
] EDIT-SOURCE - see EDIT process
[00:00] NEW task
] push changes back to the main repo || submit pull request
[00:00] NEW procedure IN prj-035-git-started/using-git/
x] # 452 - LIST-steps - detailed step by step process for cloning a remote repository to your local machine
] EDIT source
] EXAMPLE
x] use VScode editor to change "index.html" ( triplicate line about "we now have 64 applications"
x] git add -A ( all changes)
x] git commit -a ( use "am" to get a different editor than vi to enter your commit msg)
] push changes back to a different repo
[HOW-TO]
[00:00] NEW task
*] SUCCESS - your project should be live on github, ready for any changes you make locally,
] you can take your git SKILLS to the next level, but its entirely up to you wether to ADVANCE or not, typically if you plan to have multiple contributors to your source base, you will
[00:00] NEW task IN
] clone - any exisiting repository into your local machine
] navigate to directory where you wish to copy the files into
] ENTER the following command in bash, where {path} is the URL generated by the 'clone' button in github