Weitere Ă€hnliche Inhalte Ăhnlich wie GIT from n00b (20) KĂŒrzlich hochgeladen (20) GIT from n00b5. What is GIT? GIT is an Open source distributed version control 6. What is GIT? GIT is an Open source distributed version control 7. What is GIT? GIT is an Open source distributed version control 8. What is GIT? GIT is an Open source distributed version control 12. Do everything in local - Commit (save what you did) - View file or project history 13. Do everything in local - Commit (save what you did) - View file or project history - Switch to other branch 14. Do everything in local - Commit (save what you did) - View file or project history - Switch to other branch - Merge branches 15. What is Version Control? What is Version Control? History of your Project 16. What is Version Control? What is Version Control? History of your Project - Features 17. What is Version Control? What is Version Control? History of your Project - Features - Bug fixed 18. What is Version Control? What is Version Control? History of your Project - Features - Bug fixed - Experiment your idea 22. Benefit of Version Control - Collaboration - Programmer&Designer - Programmer&Programmer 23. Benefit of Version Control - Collaboration - Programmer&Designer - Programmer&Programmer - Track your work 26. Problem before not use GIT - Nobody know who modified files - Nobody know who add/delete files 27. Problem before not use GIT - Nobody know who modified files - Nobody know who add/delete files - Project manager of team members don't know what you do in code 28. Problem before not use GIT - Nobody know who modified files - Nobody know who add/delete files - Project manager of team members don't know what you do in code - Nobody know who to blame when something went wrong 30. What I like on GIT? - Fast - No server (commit, diff, branch) 31. What I like on GIT? - Fast - No server (commit, diff, branch) - Easy to use 32. What I like on GIT? - Fast - No server (commit, diff, branch) - Easy to use - Many choice of GUI client 40. Configuration git config âglobal user.name âyour nameâ git config âglobal user.email âfoo@bar.comâ git config âglobal colour.ui âautoâ git config âlist 42. Get repository git clone https://github.com/twitter/bootstrap.git Create on local Clone from remote machine git init 51. GIT Branches - Do something different in project - Separate from original code 52. GIT Branches - Do something different in project - Separate from original code master 53. GIT Branches - Do something new for different - Separate from original code master development 54. GIT Branches - Do something new for different - Separate from original code master development theme2 57. Create branch git branch development git checkout -b development /* development = name of branch */ 63. My work flow mkdir projectx cd projectx git init gedit .gitignore 64. My work flow mkdir projectx cd projectx git init gedit .gitignore git add . 65. My work flow mkdir projectx cd projectx git init gedit .gitignore git add . git commit -m 'start Project X' 68. Your co-worker flow git clone git@host.com:path/to/repository.git gedit index.php git add index.php git commit -m 'add index.php' git push origin master 69. My work flow git fetch git checkout master git merge origin/master