ผลต่างระหว่างรุ่นของ "01219245/git"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 17: แถว 17:
 
=== Basic git with HTML ===
 
=== Basic git with HTML ===
  
1. Find a location in your file system, and create a new directory/folder for the practice.
+
1. Find a location in your file system, and create a new directory/folder for the practice.  Let's call the directory '''<tt>homepage</tt>'''.  The command for that is '''<tt>mkdir</tt>'''.
  
1.1 For Windows:
+
mkdir homepage
 
 
1.2 For Unix:
 
  
 
=== Practice with branching ===
 
=== Practice with branching ===

รุ่นแก้ไขเมื่อ 15:15, 8 มกราคม 2557

This is part of 01219245.

In this course, we will use Git as our software version control tool. There are various UI clients for Git, but we will use the command-line version.

Preparations

Install Git: go to download page, download and install the command-line version.

Git-download.png

  • Additional info for Windows users:
    • When the installer ask you to select components, you can tick off the "Windows Explorer integration".
    • When the installer ask you the option to "Adjusting your PATH environment", choose "Run Git from Windows Command Prompt".

In-class practice

Basic git with HTML

1. Find a location in your file system, and create a new directory/folder for the practice. Let's call the directory homepage. The command for that is mkdir.

mkdir homepage

Practice with branching

Links

  • http://git-scm.com/ - Git main site: documentation
  • YouTube clips:
    • Part 1 - covers the following commands: init, status, add, commit, diff, log
    • Part 2 - covers how to ignore files
    • Part 3 - covers basic branching mode and how to move the HEAD around the commit graphs
  • Other YouTube clips:
    • TBA