 

 It’s a way that we use to store projects’ source code 
files in a tree of versions. 
 no deal 
 
collected together
 locally 
 
no lose
A lot of Web-Based Code Servers provide Free and paid services ike: 
29 November 2014
Source1: https://git.wiki.kernel.org/index.php/GitProjects 
Source2: https://github.com/popular/starred 
29 November 2014
 same structure 
 
 Main task of any SCMS is to: 
 Track changes to files. 
 Repository / database of changes 
 Working directory / current state
We can sort operations that we can do with any SCMS into 4 
main categories: 
 
 
 

There are 2 types of SCM systems: 
 

o Subversion CVS 
o 
o 
o Operations require server, there are some drawbacks: 
 Single point of failure 
 Bottleneck
o Git Mercurial Bazaar 
o 
o 
o 
o Workflow : 
 Clone 
 Pull / fetch 
 push
“ Nothing is perfect. Git is just *closer* to perfect than any other SCM out there ”
 
 
 

 
 http://git-scm.com/downloads
 
$ git –-version
 
$ git <options> command <options> 
 137 

 
$ git <command> -h 
 
$ git <command> --help 
$ git help <command>
 
$ git init 
.git 
 .git
 
 Additions: 
$ git add file #This add a specific file 
$ git add . #This add all changed files 
 Removal: 
$ git rm file #This removes a specific file 
 Renames: 
$ git mv old new #This renames a specific file
 .gitignore 
 Automatically generated code (e.g. R.java for Android) 
 Settings folder of editors that is created automatically. 
 If you are using any dependences on other libraries like in PHP you can add them to composer.json 
and ignore them. 
 Or any other unwanted files. 

 
 
$ git commit –m ”this is the message” 
 
all 
$ git commit -a –m ”this is the message” 
 
yes
 
$ git status 
 
 
 
 
$ git show
Tags 
Branches
 
 
$ git branch –l 
 
$ git branch –r 
 
$ git tag -l
 
$ git branch name 
 
$ git branch name commit 
 
$ git checkout name
 
$ git checkout A 
$ git merge B 
$ git checkout A 
$ git merge B C
 
$ git clone <remote> 
•

 


 

 
 https://bitbucket.org
 GitHub is a Git repository web-based hosting 
service, which offers all of the distributed revision 
control and source code management (SCM) 

 
 

 

# =============== # 
# Unity generated # 
# =============== # 
Temp/ 
Obj/ 
UnityGenerated/ 
/Library/ 
# ===================================== # 
# Visual Studio / MonoDevelop generated # 
# ===================================== # 
ExportedObj/ 
*.svd 
*.userprefs 
*.csproj 
*.pidb 
*.suo 
*.sln 
*.user 
*.unityproj 
*.booproj 
# ============ # 
# OS generated # 
# ============ # 
.DS_Store 
.DS_Store? 
._* 
.Spotlight-V100 
.Trashes 
Icon? 
ehthumbs.db 
Thumbs.db 
Download here : 
http://dmayance.com/git-and-unity-projects/
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 

 http://wiki.unity3d.com/index.php/Csharp_Coding_G 
uidelines 
 http://devmag.org.za/2012/07/12/50-tips-for-working- 
with-unity-best-practices/
 
 
 
 

 
 
 
 
 

 http://git-scm.com/ 
 http://www.sourcetreeapp.com/ 

 http://git-scm.com/book/en/v2 
 http://www.slideshare.net/Med7at/bitbucket-as-a-code- 
server-and-pmt?qid=c89797b4-d21f-4d2b-a2d5- 
b86935471e28&v=qf1&b=&from_search=1 
 http://www.sourcetreeapp.com/ 
 http://dmayance.com/git-and-unity-projects/

Working in Team using Git in Unity

  • 2.
  • 4.
     It’s away that we use to store projects’ source code files in a tree of versions.  no deal  collected together
  • 7.
  • 8.
    A lot ofWeb-Based Code Servers provide Free and paid services ike: 29 November 2014
  • 9.
    Source1: https://git.wiki.kernel.org/index.php/GitProjects Source2:https://github.com/popular/starred 29 November 2014
  • 10.
     same structure   Main task of any SCMS is to:  Track changes to files.  Repository / database of changes  Working directory / current state
  • 11.
    We can sortoperations that we can do with any SCMS into 4 main categories:    
  • 12.
    There are 2types of SCM systems:  
  • 14.
    o Subversion CVS o o o Operations require server, there are some drawbacks:  Single point of failure  Bottleneck
  • 16.
    o Git MercurialBazaar o o o o Workflow :  Clone  Pull / fetch  push
  • 17.
    “ Nothing isperfect. Git is just *closer* to perfect than any other SCM out there ”
  • 18.
  • 19.
  • 21.
     $ git–-version
  • 22.
     $ git<options> command <options>  137 
  • 24.
     $ git<command> -h  $ git <command> --help $ git help <command>
  • 25.
     $ gitinit .git  .git
  • 26.
      Additions: $ git add file #This add a specific file $ git add . #This add all changed files  Removal: $ git rm file #This removes a specific file  Renames: $ git mv old new #This renames a specific file
  • 27.
     .gitignore Automatically generated code (e.g. R.java for Android)  Settings folder of editors that is created automatically.  If you are using any dependences on other libraries like in PHP you can add them to composer.json and ignore them.  Or any other unwanted files. 
  • 28.
      $git commit –m ”this is the message”  all $ git commit -a –m ”this is the message”  yes
  • 30.
     $ gitstatus     $ git show
  • 31.
  • 32.
      $git branch –l  $ git branch –r  $ git tag -l
  • 33.
     $ gitbranch name  $ git branch name commit  $ git checkout name
  • 35.
     $ gitcheckout A $ git merge B $ git checkout A $ git merge B C
  • 38.
     $ gitclone <remote> •
  • 44.
  • 45.
  • 47.
  • 48.
  • 49.
  • 51.
     GitHub isa Git repository web-based hosting service, which offers all of the distributed revision control and source code management (SCM) 
  • 56.
  • 57.
  • 58.
    # =============== # # Unity generated # # =============== # Temp/ Obj/ UnityGenerated/ /Library/ # ===================================== # # Visual Studio / MonoDevelop generated # # ===================================== # ExportedObj/ *.svd *.userprefs *.csproj *.pidb *.suo *.sln *.user *.unityproj *.booproj # ============ # # OS generated # # ============ # .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db Download here : http://dmayance.com/git-and-unity-projects/
  • 59.
               
  • 61.
  • 62.
        
  • 63.
     http://wiki.unity3d.com/index.php/Csharp_Coding_G uidelines  http://devmag.org.za/2012/07/12/50-tips-for-working- with-unity-best-practices/
  • 64.
        
  • 65.
         
  • 66.
     http://git-scm.com/ http://www.sourcetreeapp.com/ 
  • 67.
     http://git-scm.com/book/en/v2 http://www.slideshare.net/Med7at/bitbucket-as-a-code- server-and-pmt?qid=c89797b4-d21f-4d2b-a2d5- b86935471e28&v=qf1&b=&from_search=1  http://www.sourcetreeapp.com/  http://dmayance.com/git-and-unity-projects/