lab 1: trello & git - hanyangselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab1.pdf ·...
TRANSCRIPT
CSE3026 Web Application Development
Lab 1: Trello & Git
1
Software Engineering Lab
Except where otherwise noted, the contents of this document are Copyright 2016 HyungLak Kim,Gichan Lee, Scott Uk-Jin Lee. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.
TrelloEx) https://trello.com/b/6otslC4i/template-board-agile-with-trello
2
Create a New Board
• Click ‘Create new board’
• Click Trello logo
4
5
Add New List
• Click Add a list • Set name of a list
6
Add a new Item• click add a card then setting item name
7
• Edit the description & Write a description
8
• drag you want move item
Item able to move between the list
9
Delete item and list
• List • Item
• Move to archive
10
More• You can set item member,label,checklist,due date and attachment
• Checklist
11
• Add Members • Labels • Due Date
12
1. Create a new board 2. Create a set of List -My information,Portfolio,Hobby&interest,Doing 3. Add information,career,resume,contact,phone number item in My information List
4. Add an item of the thing that you are doing now in Doing List and set item Due date
5. Add items (your project, paper or etc) in Portfolio List and set Label(team, solo, domestic, global…)
6. Add items representing your interest or bucket list in Hobby & Interest List and set checkbox(your bucket list)
Exercise 1
13
Example
14
https://trello.com/guide http://buildbettersoftware.com/with-trello/
http://www.infoq.com/articles/scrum-trello http://wpcurve.com/trello-for-project-management/ https://trello.com/b/UTc6X4FS/-
Additional
Reference
15
https://github.com/
Github
16
You can think of a version control system (short: "VCS") as a kind of "database".
VCS(version control system)
17
• Collaboration Without a VCS in place, you're probably working together in a shared folder on the same set of files
• Storing Versions (Properly) Saving a version of your project after making changes is an essential habit. But without a VCS, this becomes tedious and confusing very quickly
• Back up A side-effect of using a distributed VCS like Git is that it can act as a backup
• Understanding What Happened Every time you save a new version of your project, your VCS requires you to provide a short description of what was changed.
• Restoring Previous Versions Being able to restore older versions of a file (or even the whole project)
Why use VCS
18
Git work flow
19
OS X • http://sourceforge.net/projects/git-osx-installer/
Windows • https://git-scm.com/download
Linux • $ apt-get install git
Install
20
Create a New Remote Repository
Sign in https://github.com Only input email address of Hanyang of University
21
Create a New Remote Repository
• Check the your email of Hanyang of University • Click “Verify email address”
22
Create a New Remote Repository
23
Create a New Remote Repository
24
If you don’t see this page
Click -> https://education.github.com/pack
Create a New Remote Repository
25
Create a New Remote Repository
26
Create a New Remote Repository
27
Create a New Remote Repository
28
Create a New Local Repository
• Create a new folder and repository
$ git init
29
Create a New File
• Create a new file
30
Add Files
$ git add <file name>
$ git add *
Add all files
•Add the created file,
‘hello.txt’, and track it
31
Commit Files
•Write commit message and commit added files
$ git commit -m “<message>”
32
View commit logs
$ git log
33
Connect to Remote Repository
$ git remote add origin <URL>
$ git push -u origin master
34
Get Files From Remote Repository
• Clone files from repository of the remote server
$ git clone <URL>
35
Push and Pull at Remote Repository
$ git push origin master
• Push updates in local to remote server • *If you want to push to other branch input the branch name instead master
$ git pull
• Synchronize the local repository with remote repository
36
Edit Files
• Change the ‘text.txt’ ,create new file
37
Cancel Added Files
Create and add a text file, ‘todo.txt’
$ vi todo.txt
$ git add *
• Remove a specific file in the staged state
$ git rm --cached todo.txt
38
Ignore Files
Create ‘.gitignore’ and add the name rules for files to be ignored
$ vi .gitignore
Check that it works
$ git add *
$ git status
git config --global core.excludesfile .gitignore
39
Turn Back to the Recent Commit
$ git checkout <filename>
$ git checkout
• If you want to turn a specific file or all of files back to the recent commit
40
Change Files and Remove
$ git rm <filename>
• Remove a file
$ git mv <filename> <new_name>
Change file name
* If you change file name without using this command, git considers the existing file is removed and the new file is created
41
Exercise 21. Create an remote private repository
2. Create a program if you press “1” that print your email (language of your choice)
3. Add and commit local repository named “lab1” directory
4. Upload to your remote repository
5. Add a function to print your phone number when you press “2”
6. Update your remote repository
7. Add the git id of TA! (ID: koliaok)
42
Example
43
Example
44
Example
45
Create Folder
46
Create Folder
47
Create Folder
48
Create Folder
49
AdditionalA cheat sheet of common Git commands
• https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
Git reference
• https://rogerdudler.github.io/git-guide/index.ko.html
ProGit-kor
• https://progit2.s3.amazonaws.com/ko/2015-07-08-5c390/progit-ko.582.pdf
Git simple guide
• https://rogerdudler.github.io/git-guide/index.ko.html
50