task

learn git

day# 4

[REFERENCE]

  1. ] # 2568 - overview git in technology-software/developer/source-code-managment
  2. ] # 4076 - overview git in project-035/planning/documentation
  3. ] # ### - ignore this

[previously]

  1. [2014-03-15] day# 1 - Git Started
    1. ] download and install git, ] configure git, ] create an ART overview git ]
  2. [2014-03-16] day# 2 - REVIEW VIDEO tutorial
    1. ] review tutorial, ] start MY prj-001, ] a few questions, ] abondoned lrn-git project ???
  3. [2014-12-07] day# 3 - RETURN to git, addED SCENARIO'S
    1. x] COMPLETE interactive tutorial on github to practice using git Bash CLI and learn me some git commands
    2. x] layed out some different use case scenario's for how 1 might be using git, see below ...
    3. [2014-12-07] SCENE 1 - you are CREATE a new local project
    4. [2014-12-07] SCENE 2 - you HAVE an existing local project
    5. [2014-12-07] SCENE 3 - you HAVE/WANT to work on an existing remote project, (clone to local, make changes, push to remote)
    6. [2014-12-07] SCENE 4 - GET(clone) an existing remote project for  inclusion into ..
  4. [2014-12-08] ADD
    1. x] forwarded in /NEXT items from previous days (1-3)

[currently]

  1. [2014-12-07] SCENE 1 - CREATE a new local project
  2. *] starting from scratch, aka the BOTTOM UP
    1. ] a new (local) project and then push to github remote repository
    2. ] FOLLOWING along with the notes from git overview - how-to section
    3. ]
  3. x] createD a new folder 
    1. ] named "guide", this will become the guide *.* program
  4. x] ADD file named "index" to folder,
    1. ] plain html file
    2. ] cshtml file
  5. >] get contents of guide guides -
    1. ] in page it is encoded Html,
    2. ] need to use function @Server.Html.Decode to Decode, which means I need a .cshtml page and not a static HTML page
    3. ] TRY create .cshtml file
    4. ] 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
  6. ASIDE*] test wm on another site
    1. ] RESULT = PASS, sospep, ...
    2. ] RESULT = FAIL
  7. ASIDE *] went back to using a basic .html file
    1. x] need to setup "page layout", "site layout" templates, etc for .cshtml
    2. x] site has 2nd file "new" which is an example for
    3. x] site added subdirectories /bin and /App_Data (after adding .cshtml files)
    4. x] upgraded from WM pages 1.0, to WM 2.xxxx on prompt at start
  8. TOOLS x] launch - Git Bash
    1. ] navigate to the "working directory"
    2. +] git navigation tips = ls = dir, cd = cd, "use quotes" around folder names that contain spaces,  
  9. x] use "git init"
    1. x] initialize empty git repository
  10. VERIFY x] use "git status"
    1. x] to confirm, getting message re: repo initialized, list files, folders in red ( as none have been added)
  11. x] use  " git add *.*"
    1. *] this adds the files in the current directory, it does not add any subfolders, git status now lists the files in green,
    2. ?] git command to include subdiretories in file add
  12. COMMIT x] git commit -m "001] guide project"
    1. x] ERROR re pathspec m
    2. *] FOUND PRB - the m in the command has a "-" dash before it, -m
    3. x] ERROR email - unable to auto deta
  13. CONFIGURE*] git config --global user.email yourEmail@email.com
    1. ] this set your identity email across all git repos, OMIT the --global switch to set it for only this repository
  14. CONFIGURE*] git config --global user.nam "your name"
    1. ] this set your identity username for all your git repos, OMIT the --global switch to set it for only this repository
  15. VERIFY x] git log
    1. x] success 2 files changed, 185+insertions??,
  16. ADD REMOTE to remote server] git remote add origin "server url"
    1. ?] do i need to create the repository first on the remote server if it doesnt exist OR ????
    2. *] changed from name "origin" to name "guide"
    3. x] https://github.com/sospep/
    4. *] NO ERROR on command, but no repository appears on github
    5. *] MANUAL CREATEd repository named "guide" on the github website
    6. *] after creation, you get an "instructions page" outlines a couple of scenarios including setup from desktop, command line, importing repo's 
    7. x] changed name back to origin
    8. x] TRY git remote add origin https://github.com/sospep/guide.git
  17.  PUSH REMOTE ] git push -u origin master
    1. *] prompts for your <github> account un and pw,
    2. *] SUCCESS -
    3. *] images/documenting - message re:

[next]

  1. ] day 5 learn git
    1. # 4519 - branching, merge and update, ...
Details Photos Edit more

Details

ID: 3713

NAME: day-4-learn-git

DESCRIPTION: NEXT STEPS ] create a local repo ] add files to repo ] commit files ] add repo to remote server ] push repo to remote host ]

START DATE TIME: 2014-12-08 21:59:01

EST DURATION: 01:00:00

END DATE TIME: 2014-12-08 22:59:01

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities