task

learn GIT

day# 5

[REFERENCE]

  1. ] # 2568 - overview git in technology-software/developer/source-code-managment
  2. ] # 4076 - overview git in project-035/planning/documentation
  3. ] # 4522 - create FAQ - about git - not really a FAq, more of a PAQ - Personally Asked
  4. ] # ### - 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] day# 4 - create repo, add remote repo, push repo to remote,
    1. +] SCENARIO - ADDing some component into your project
    2. x] forwarded in /NEXT items from previous days (1-3)

 

[currently]

  1. [2014-12-09] SCENE 1 - CREATE a new local project(contd) - Branching
    1. ] create a branch to make changes to your code( a fix or a new feature), this gives you an isolated (local) copy of the code to work on 
    2. ] Branches are used to develop features isolated from each other. The master branch is the "default" branch when you create a repository. Use other branches for development and merge them back to the master branch upon completion.
    3. ] A branch is essentially a copy of the entire projects files that is seperate from the "master" copy. You make whatever changes you want to any of the code in the project in order to implement your feature/fix.
    4. [OPTION PUBLIC] A branch you create is local to you, you can push your branch to your public repository, but you dont have to
  2. x] git checkout -b feature_x
    1. x] createD a new branch named "feature_x" and switch to it
  3. x] DO - some coding,
    1. *] I modified 1 file named "index.html",
    2. x] removed 1 file named "new.cshtml", using my dev IDE
  4. *] git status
    1. ] now lists both "modified" files in red
  5. x] git add "modified file"
    1. ] this changes it from red to green in git status, thats good right?
  6. x] git rm "deleted file" 
    1. ] to remove deleted file from repo
  7. x] git commit -m "feature-1 adds function x"
    1. ] to commit your changes to the new branch
  8. [OPTIONAL] x] git push origin <branch>
    1. *] a branch is NOT available to others UNLESS you push the branch to your remote repository
    2. *] creates the branch name on the server
  9. x] git checkout master
    1. x] switches you back to master branch
    2. *] now i have the original version of the file that I "modified in my working directory and the deleted file is back
    3. *] IDE message re: file has changed, option to reload 
  10. ] git branch -d feature_x
    1. ] delete the branch
  11. ] SUMMARY
    1. ] created a new branch,
    2. ] changed some files,
    3. ] git add changed files, git rm deleted files, git commit -m,
    4. ] git push origin <branchName>
    5. *] compare version feature on, highlights lines in file that are different

[next]

  1. [2014-12-dd] day# 6
    1. ] update and merging - use update to get the latest changes from the remote repo into your local repo, use merge to bring the changes from a branch into your master branch
  2. [2014-12-dd] day# 7
    1. ] tagging and logging - tag your commits with version#'s, use log to view the commit history of a project in the format that you desire
Details Photos Edit more

Details

ID: 4519

NAME: day-5-learn-git

DESCRIPTION: NEXT STEPS ] create a NEW branch ] switch between branches ] OPTIONALLY push your branch to remote repo ] delete a branch

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

EST DURATION: 01:00:00

END DATE TIME: 2014-12-09 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