SVN                                            GITServer                    ServerHistory                   (remote)      ...
Branch     ( 僅供參考 )master(RD)testing(PM)release(Client)   Tag                milestone 1   milestone 2   version 1   versi...
.gitignore●   To keep generated files out of repository.    –   Eg : *.apk *.o bin/ cache/●   Templates: https://github.co...
submodule+branch   App Workspace                    libUtil                             libUtil                           ...
Upcoming SlideShare
Loading in …5
×

Git

657 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
657
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Git

  1. 1. SVN GITServer ServerHistory (remote) INTERNET 面對它 fetch Server cache pull commit (FETCH_HEAD) 放下它 接受它 push merge History (index) 處理它Working committree To be committed (stage) commit -a add add -p Working tree add addUntracked Untracked
  2. 2. Branch ( 僅供參考 )master(RD)testing(PM)release(Client) Tag milestone 1 milestone 2 version 1 version 2
  3. 3. .gitignore● To keep generated files out of repository. – Eg : *.apk *.o bin/ cache/● Templates: https://github.com/github/gitignore
  4. 4. submodule+branch App Workspace libUtil libUtil App branch App libUtil cd app_workspace/ git submodule add git@blah.net:libUtil.git libUtil cd libUtil/ git branch app git checkout app //edit something git commit -a -m changes for app git push origin app cd ../ git add .gitmodules libUtil/ git commit -m import libUtil

×