Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading content…
Loading…
Transcript

Log

Stage1: OK! Now we get started!

1) git log

2) git log --graph

3) git log --pretty=format:"%h - %an, %ar : %s"

git rm <file name>

then........

git commit

git reset HEAD <file name>

Indentity:

git config --global user.name "XXX"

git config --global user.email "..@.."

Editor:

git config --global core.editor vi(vim,emacs,nano)

Other setting(ignorable):

git config --global color.diff auto

git config --global color.status auto

git config --global color.branch auto

git config --global color.log auto

git rm --cached <file name>

git add <file name>

git commit (-m '<commit message>')

Check Settings

1)git config --list

2)git config <key> (key: user.name,user.email......)

3)vi .gitconfig

Stage2: Next,we work locally!

1) mkdir <file_name>

2) cd <file_name>

3) git init

4) git status

Branch

1) git branch

2) git branch <new branch name>

3) git checkout <branch name>

Outline

Get and update code:

git fetch

git pull [shortname]

git push [shortname]

Merge code:

git checkout [main branch]

git merge [the branch you wanna merge]

Stage1: Settings of Git

Stage2: Local setting

Stage3: Work with remote server

Stage3: Work with remote Server!

So,why "Distributed" & "Git" ?

CVCS => DVCS

Add remote server:

git remote add [shortname] [url]

git remote

git remote -v

Clone Project:

git clone https://github.com/libgit2/libgit2

git branch clar2

Implementation--Git Flow

Useful Resources

Several students in a group(on any OS):

1)Set branches and make your "First Commit" to Bitbucket

including: README.txt, one random file.

(This is original project.)

2)Everyone forks the project to your own Bitbucket.

3)Everyone clone the project from your own Bitbucket.

4)Add one file on your own branch. Push to your own Bitbucket.

5)Send pull request to original project.

1) http://git-scm.com/

--Official Site of Git

2) http://git-scm.com/book/zh-tw/v1

--Chinese textbook of Git(version1)

3) https://bitbucket.org/

--Bitbucket (as Remote Server)

4) https://koding.com/

--Koding, a real Ubuntu OS

Introduction to Git

(Distributed Version Control System)

by Zam

Learn more about creating dynamic, engaging presentations with Prezi