1
2
3UNIX
4C
5Objective-C
6
7KVO-KVC
8Block
9Swift
10UI
11
12
13
14
15Runloop
16
17WebViewJS
18
19
20
21
22Runtime
23 
24 
———
  
 1
2
4
8
9
15
35
45
47
59
62
85
90
95
101
110
117
128
137
147
148
158
159
178
184
186
1
iOSiOS每
下
每 
github每
以每 
  
 2
  
 3
2
SVNGit
每 
SVN 
•
SVN 
1> Repository   
2> Server       
3> Client       
4> &   ""
1> checkout     ""
2> update       "
"
3> commit       ""
•
•
SVN()
SVN
$ cd 
checkout
$ svn co http://xxx/svn/xxxx --username=manager --password=manager
checkout(co)
$ svn st
"is not a working copy"svnsvn
svn
$ svn log
$ svn log filename
$ svn log filename@1
$ touch main.c
$ open main.c
  
 4
$ svn st
$ svn add main.c/main.*
$ svn ci -m ""
$ svn rm Person.h
 
$ svn ci -m ""
$ svn revert Person.m
$ svn update -r 5
(p) postpone            
(mc) mine-conflict      
(tc) theirs-conflict    
svn st 
' ' 
'A' 
'C' 
'D' 
'I' 
'M' 
'R' 
'X' 
'?' 
'!' svn
'~' 
  
 5
Git 
•
git
$ git help
git
$ git help 
"q"
""
"CTRL+B"
"/"""
$ git init
$ git config user.name manager
$ git config user.email manager@gmail.com
$ git config --global user.name manager
$ git config --global user.email manager@gmail.com
 .gitconfig 
$ git config -l
$ touch main.c
$ open main.c
$ git status
$ git add main.c
$ git commit -m "main.c"
 -m 
 vim vim
$ git add .
$ touch Person.h Person.m
  
 6
$ git add .
$ git commit -m "Person"
$ open Person.h
$ git add .
$ git commit -m "Person"
 gitsvn
$ git log
$ git log 
$ git reset --hard HEAD
$ git reset --hard HEAD^
3
$ git reset --hard HEAD~3
$ git reset --hard e695b67
$ git reflog
 
• 
• 
• 
 
• SourceTree⼒GIT被CornerStone⼒SVN被经
• svngit每
• ⼒SVN被
每
每每
• Git
每
  
 7
3UNIX
每每 
1.
2.
3.
cd  
pwd 
UNIX 
ls 
$ ls 
$ ls -a 
$ ls -l 
$ ls -la  
4.
touch UNIX 
$ touch test.txt 
touchtest.txt信test.txt
 
1.
cat  
2. more  
 
1> 
2> TAB
  
 8