Your SlideShare is downloading. ×
0
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Code versioning with git
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Code versioning with git

208

Published on

This are slides for my presentation on using Git at GDG DevFest akure, Ondo state, Nigeria. Enjoy!

This are slides for my presentation on using Git at GDG DevFest akure, Ondo state, Nigeria. Enjoy!

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
208
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Code versioning with Git (from zero to hero) @Samuel_NET http://about.me/okoroaforsamuel
  • 2. Introduction - What is Git? - Why use Git? Code Versioning with Git
  • 3. Code Versioning with Git //TODO: - Git installation - Github account setup
  • 4. Code Versioning with Git // TODO: - creating a repository on github - setting up a project to use git - online or offline repository?
  • 5. Code Versioning with Git
  • 6. Code Versioning with Git Git-ing a project - using clone command sam@sam-pc:~/workspace/devfest/ $ git clone https://github.com/devfest/project.git
  • 7. Code Versioning with Git Git-ing a project - changing directories sam@sam-pc:~/workspace/devfest/ $ cd project
  • 8. Code Versioning with Git -creating a branch in git sam@sam-pc:~/workspace/devfest/project(master) $ git checkout -b workBranch
  • 9. Code Versioning with Git - Adding a new file to the project - Create a new file named index.php and type the following <?php echo “Hello PHP!” ?>
  • 10. Code Versioning with Git - using the git add command sam@sam-pc:~/workspace/devfest/project(workBranch) $ git add -A
  • 11. Code Versioning with Git - using the git commit command sam@sam-pc:~/workspace/devfest/project(workBranch) $ git commit -a -m”Commit message”
  • 12. Code Versioning with Git - Using the git push command sam@sam-pc:~/workspace/devfest/project(master) $ git push origin master
  • 13. Code Versioning with Git - git-ing an existing project sam@sam-pc:~/workspace/devfest/project $ git init
  • 14. Code Versioning with Git - adding a remote repository origin sam@sam-pc:~/workspace/devfest/project(master) $ git remote add origin https://github. com/devfest/project.git
  • 15. Code Versioning with Git - pushing codes to a remote repository sam@sam-pc:~/workspace/devfest/project(master) $ git push origin master $ git pull origin master
  • 16. Code Versioning with Git The End

×