edit-task
Home
Up
Delete
Task Name:
Task Description:
NEXT STEPS ] undo local changes
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# 8</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>] # 4522 - <a href="/view/task?id=4522" target="_blank">create FAQ</a> - about git - not really a FAq, more of a PAQ - Personally Asked</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] <a href="/view/task?id=3713" target="_blank">day# 4</a> - create repo, add remote repo, push repo to remote, </strong></li> <ol> <li>+] SCENARIO - ADDing some component into your project</li> <li>x] forwarded in /NEXT items from previous days (1-3)</li> </ol> <li><strong>[2014-12-08] </strong><a href="/view/task?id=4519" target="_blank"><strong>day# 5</strong></a><strong> - create a branch, switch between branches, delete a branch</strong></li> <ol> <li>x] what is a branch, creating a branch, making changes to your code within the branch, switching back to a different branch and</li> </ol> <li><strong>[2014-12-14] <a href="/view/task?id=4524" target="_blank">day # 6</a> - merge, pull, </strong></li> <ol> <li>] merge is when you combine branches into the master branch,</li> </ol> <li><strong>[2014-12-15] <span style="text-decoration: underline;">day # 7</span> - tagging and loggin</strong></li> <ol> <li>] tag your commits, use</li> </ol></ol> <p> </p> <h2>[currently]</h2> <ol> <li><strong><span style="background-color: #ffff99;">[2014-12-09] SCENE 1 - CREATE a new local project(contd)</span> - replace(undo) local changes</strong></li> <ol> <li>] <strong>undo local changes</strong></li> </ol> <li><strong>] SUMMARY</strong></li> <ol> <li>]</li> <li>]</li> </ol></ol> <h2>[next]</h2> <ol> <li><strong>[2014-12-dd] day# 10 </strong></li> <ol> <li>] # # -</li> </ol> <li><strong>[2014-12-08] NEW</strong></li> <ol> <li><strong>] now what - </strong>we have our local repo, we have pushed our local repo to a remote server, anyone can clone it</li> <li><strong>] changes - </strong>edit file, git add, git commit,</li> <li><strong>] </strong></li> </ol></ol> <p> </p> <p> </p> <p><strong>] git replace local changes</strong></p> <p>In case you did something wrong (which for sure never happens ;) you can replace local changes using the command</p> <p>git checkout -- <filename><br /> this replaces the changes in your working tree with the last content in HEAD. Changes already added to the index, as well as new files, will be kept.</p> <p>If you instead want to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this</p> <p>git fetch origin</p> <p>git reset --hard origin/master <strong><br /></strong></p>