edit-task
Home
Up
Delete
Task Name:
Task Description:
NEXT STEPS ] create a local repo ] add files to repo ] commit files ] add repo to remote server ] push repo to remote host ]
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">learn git</h1> <h2 style="text-align: center;">day# 4</h2> <h2><strong>[REFERENCE] </strong></h2> <ol> <li>] # 2568 - <a href="/view/article?id=2568" target="_blank">overview git</a> in technology-software/developer/source-code-managment</li> <li>] # 4076 - <a href="/view/article?id=4076" target="_blank">overview git</a> in project-035/planning/documentation</li> <li>] <span style="background-color: #888888;"># ###</span> - ignore this</li> </ol> <h2>[previously]</h2> <ol> <li><strong>[2014-03-15] <a href="/view/task?id=3663" target="_blank">day# 1 - Git Started</a></strong></li> <ol> <li>] download and install git, ] configure git, ] create an ART overview git ]</li> </ol> <li><strong>[2014-03-16] <a href="/view/task?id=3672" target="_blank">day# 2 - REVIEW VIDEO tutorial</a></strong></li> <ol> <li>] review tutorial, ] start MY prj-001, ] a few questions, ] abondoned lrn-git project ???</li> </ol> <li><strong>[2014-12-07] <a href="/view/task?id=4477" target="_blank">day# 3 - RETURN to git, addED SCENARIO'S</a></strong></li> <ol> <li>x] COMPLETE <span style="text-decoration: underline;">interactive tutorial</span> on github to practice using git Bash CLI and learn me some git commands</li> <li>x] layed out some different use case scenario's for how 1 might be using git, see below ...</li> <li><span style="background-color: #ffff99;"><strong>[2014-12-07] SCENE 1 - you are CREATE a new local project </strong></span></li> <li><span style="background-color: #ffff99;"><strong>[2014-12-07] SCENE 2 - you HAVE an existing local project </strong></span></li> <li><span style="background-color: #ffff99;"><strong>[2014-12-07] SCENE</strong><strong> 3 - you HAVE/WANT to work on an existing remote project, (clone to local, make changes, push to remote)</strong></span></li> <li><span style="background-color: #ffff99;"><strong>[2014-12-07] SCENE</strong><strong> 4 - GET(clone) an existing remote project for inclusion into ..</strong></span></li> </ol> <li><strong>[2014-12-08] ADD</strong></li> <ol> <li>x] forwarded in /NEXT items from previous days (1-3)</li> </ol></ol> <h2>[currently]</h2> <ol> <li><span style="background-color: #ffff99;"><strong>[2014-12-07] SCENE 1 - CREATE a new local project </strong></span></li> <li><strong>*] starting from scratch, aka the BOTTOM UP</strong></li> <ol> <li>] a new (local) project and then push to github remote repository</li> <li>] FOLLOWING along with the notes from git overview - how-to section</li> <li>]</li> </ol> <li><strong>x] createD a new folder </strong></li> <ol> <li>] named "guide", this will become the guide *.* program</li> </ol> <li><strong>x] ADD file named "index" to folder,</strong></li> <ol> <li>] plain html file</li> <li>] cshtml file</li> </ol> <li><span style="background-color: #888888;"><strong>>] get contents of guide guides -</strong></span></li> <ol> <li><span style="background-color: #888888;">] in page it is encoded Html,</span></li> <li><span style="background-color: #888888;">] need to use function @Server.Html.Decode to Decode, which means I need a .cshtml page and not a static HTML page</span></li> <li><span style="background-color: #888888;"><strong>] TRY create .cshtml file</strong></span></li> <li><span style="background-color: #888888;">] PRB discover webmatrix is non functional ??, ERROR re: *multiple versions of razor on same system(CAUSE visual studio install), SOL need element in config file for site to, when launch .cshtml files</span></li> </ol> <li><span style="background-color: #888888;"><strong>ASIDE*] test wm on another site</strong></span></li> <ol> <li><span style="background-color: #888888;">] RESULT = PASS, sospep, ...</span></li> <li><span style="background-color: #888888;">] RESULT = FAIL</span></li> </ol> <li><span style="background-color: #888888;"><strong>ASIDE *] went back to using a basic .html file</strong></span></li> <ol> <li><span style="background-color: #888888;">x] need to setup "page layout", "site layout" templates, etc for .cshtml</span></li> <li><span style="background-color: #888888;">x] site has 2nd file "new" which is an example for</span></li> <li><span style="background-color: #888888;">x] site added subdirectories /bin and /App_Data (after adding .cshtml files)</span></li> <li><span style="background-color: #888888;">x] upgraded from WM pages 1.0, to WM 2.xxxx on prompt at start</span></li> </ol> <li><strong>TOOLS x] launch - Git Bash</strong></li> <ol> <li>] navigate to the "working directory"</li> <li>+] git navigation tips = ls = dir, cd = cd, "use quotes" around folder names that contain spaces, </li> </ol> <li><strong>x] use "git init"</strong></li> <ol> <li>x] initialize empty git repository</li> </ol> <li><strong>VERIFY x] use "git status"</strong></li> <ol> <li>x] to confirm, getting message re: repo initialized, list files, folders in red ( as none have been added)</li> </ol> <li><strong>x] use " git add *.*"</strong></li> <ol> <li>*] this adds the files in the current directory, it does not add any subfolders, git status now lists the files in green,</li> <li><span style="background-color: #c0c0c0;">?] git command to include subdiretories in file add</span></li> </ol> <li><strong>COMMIT x] git commit -m "001] guide project"</strong></li> <ol> <li>x] ERROR re pathspec m</li> <li>*] FOUND PRB - the m in the command has a "-" dash before it, -m</li> <li>x] ERROR email - unable to auto deta</li> </ol> <li><strong>CONFIGURE*] git config --global user.email yourEmail@email.com</strong></li> <ol> <li>] this set your identity email across all git repos, OMIT the --global switch to set it for only this repository</li> </ol> <li><strong>CONFIGURE*] git config --global user.nam "your name"</strong></li> <ol> <li>] this set your identity username for all your git repos, OMIT the --global switch to set it for only this repository</li> </ol> <li><strong>VERIFY x] git log</strong></li> <ol> <li>x] success 2 files changed, 185+insertions??,</li> </ol> <li><strong>ADD REMOTE to remote server] git remote add origin "server url"</strong></li> <ol> <li>?] do i need to create the repository first on the remote server if it doesnt exist OR ????</li> <li>*] changed from name "origin" to name "guide"</li> <li>x] <a href="https://github.com/sospep/">https://github.com/sospep/</a></li> <li>*] NO ERROR on command, but no repository appears on github</li> <li><span style="background-color: #00ff00;">*] MANUAL CREATEd repository named "guide" on the github website</span></li> <li>*] after creation, you get an "<span style="text-decoration: underline;">instructions page</span>" outlines a couple of scenarios including setup from desktop, command line, importing repo's </li> <li>x] changed name back to origin</li> <li>x] TRY git remote add origin <a href="https://github.com/sospep/guide.git">https://github.com/sospep/guide.git</a></li> </ol> <li><strong> PUSH REMOTE ] git push -u origin master</strong></li> <ol> <li>*] prompts for your <github> account un and pw,</li> <li>*] SUCCESS -</li> <li>*] images/documenting - message re:</li> </ol></ol> <h2>[next]</h2> <ol> <li>] day 5 learn git</li> <ol> <li><span style="text-decoration: underline;"># 4519 - branching, merge and update, ...</span></li> </ol></ol>