GITHUb_Easy Tutorial

GITHUb_Easy Tutorial

This is a simple GIT hub a simple tutorial for GITHUB. This tutorial is based on beginner or just wants to understand how this is work.

ChenChih

June 21, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

21 slides
  1. Objective • What is Github • Understand how to used

    Github • Understand some simple command – Add/ delete file – Add/ delete folder – Git Fuunction: Push, commit, fork • Introduce types of utility – Window – Linux(Ubuntu) we will be using this – Mac
  2. Will/ Will Not • Will – Keep it easy and

    fast – Teach you the basic of GITHUB. – Faster and let you clear on it. – Any one can learn, simple and fast. • Won’t – Teach you too advance /complicated command . – Teach every function on GITHUB
  3. Flow chat Register an account http://github.com Create a Project Repository

    GitHub Utility Window/Linux/MAC Install Package Linux(Ubuntu, Debian) #sudo apt-get install gitcore Mac #brew install git Window https://desktop.github.com GIT download all platform https://git- scm.com/download/ Add/Delete file Create /Delete Folder You should know how to use
  4. Register an account • Register an account – Go to

    https://github.com • After Register, go to your site – https://github/your-user-name – https://github.com/chenchih
  5. What is GITHUB • Version Control – Help you organize

    each version of code • Will not lost code • Will record every record of your code
  6. Other Type Version Control – CVS – SVN – Git

    – Bazaar – LibreSource – Reference: https://www.smashingmagazine.com/2008/09/th e-top-7-open-source-version-control-systems/
  7. Now use GIT HUB Utility • Linux – Ubuntu/Debian: #sudo

    apt-get install gitcore • MAC – #brew install git • Window – Window git hub • https://git-for-windows.github.io/ • https://desktop.github.com/ (github desktop) – Source tree • https://www.sourcetreeapp.com/
  8. Linux GIT create file form local • Download from git

    server by – #mkdir /GITHUB – #cd /GITHUB – #git clone https://github.com/username/project – #git clone https://github.com/chenchih/test2016
  9. Basic GIT 1) Local file to GIT Server • Download

    repository into local disk – Create a directory(recommend) – ~/#mkdir /GITHUB – # cd /GITHUB – git clone http//github.com/xxxxx/ooooo Xxxusername 000000prokject name – Example: • git clone https://github.com/chenchih/test2016 • Create file on local disk – # cd /GITHUB/test2016 – #touch example2016.txt
  10. • Upload File into git server – (create file from

    local) • # cd /GITHUB/test2016 • #touch example2016.txt – Must be the same as local – (add file to git server) • git add 'files • #git add ‘example.txt’ – Committed and upload (write description of your file) – #git commit -am “description of file“ (Upload to server) – #Git push 2)Upload file from local to server
  11. 2)Upload file from local to server • Go to GIT

    Hub Server to see if it’s upload File Name Description
  12. • Modify some file – #vi example2016.txt • Modify anything

    – (compare different) • #git diff – Commit and git push • git commit -am "wrote something“ • git push 3)Modify file
  13. • Make a folder – Create folder • # mkdir

    ./sample_test • # touch /sample_test/aaa.txt Note: under directory must have file else can’t push in – Git add folder • git add testfolder – #git add sample_test – #git commit -am "Add testfolder“ – #git push 4)Create folder
  14. • Delete folder or file from local – Delete folder

    • #rm –rf folder – git commit -am “delete folder “ – Git push 5)Delete command
  15. Additional Information • Don’t want to keep enter user and

    password of git? #git config --global user.name “chenchih" #git config --global user.email [email protected] • See your config after you add – #git config –list

More Decks by ChenChih

Other Decks in Programming