Code versioning with git
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Code versioning with git

on

  • 326 views

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!

Statistics

Views

Total Views
326
Views on SlideShare
326
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Code versioning with git Presentation 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