lab 1: trello & git - hanyangselab.hanyang.ac.kr/courses/cse406/2016/labs/lab1.pdf ·...

Post on 22-Mar-2020

8 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

CSE4006: Software Engineering

Lab 1: Trello & Git

Software Engineering Lab

Except where otherwise noted, the contents of this document are Copyright 2016 Gayeon Kim, Gwanggyu Choi, 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.

Trello

Sign up

https://trello.com/home

Create a New Board

• Click ‘Create new board’

• Click Trello logo

Add New List

• Click Add a list • Set name of a list

Add a new Item

• click add a card then setting item name

• Edit the description • Write a description

• You drag you want move item

Item able to move between the list

Delete item and list

• List • Item

• Move to archive

• You can delete or restore in archive

but list can’t delete

• Item • List

More• You can set item member,label,checklist,due date and attachment

• Checklist

• Add Members • Labels • Due Date

• Attachment

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)

7. Delete phone your number item

Exercise 1

Example

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

https://github.com/

Github

You can think of a version control system (short: "VCS") as a kind of "database".

VCS(version control system)

• 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

Git work flow

OS X • http://sourceforge.net/projects/git-osx-installer/

Windows • http://msysgit.github.com/

Linux • $ apt-get install git

Install

Create a New Remote Repository

Sign in https://github.com

Create a New Remote Repository

Create a New Local Repository

• Create a new folder and repository

$ git init

Create a New File

• Create a new file

Add and Commit Files

$ git add <file name> $ git add *

Add all files

•Add the created file,

‘hello.txt’, and track it

•Check git repository status

$ git status

Add and Commit Files

•Write commit message and commit added files

$ git commit -m “<message>”

View commit logs

$ git log

Connect to Remote Repository

$ git remote add origin <URL>

$ git push -u origin master

Get Files From Remote Repository

• Clone files from repository of the remote server

$ git clone <URL>

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 local repository with remote repository

Edit Files

• Change the ‘hello.txt’ ,create new file

View Changes

• Compare the added file with the committed file

$ git diff

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

Ignore Files

Create ‘.gitignore’ and add the name rules for files to be ignored

$ vi .gitignore

Check that it works

$ git add *

$ git status

Commit Missing Files

$ git commit --amend

If you want to add missing file or change the commit message

$ git commit -m “asdf”

$ git add forgotten_file

$ git commit -m “I forgot”

These three lines are considered as one commit

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

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

Exercise 2

1. Create an remote repository

2. Create a program if you press “1” that print your email (language of your choice)

3. Add and commit local repository

4. Upload to your remote repository

5. Add a function to print your phone number when you press “2”

6. Update your remote repository

Additional

A cheat sheet of common Git commands

• https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf

Git simple guide

• https://rogerdudler.github.io/git-guide/index.ko.html

top related