Your SlideShare is downloading. ×
Git & GitHub
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Git & GitHub

821
views

Published on

Published in: Technology

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
821
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
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. How to use Git
  • 2. Git
    Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    http://git-scm.com/
  • 3. Github
    GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private gitrepositories.
    https://github.com/
  • 4. git install on Ubuntu system
    Install debian package
    sudo apt-get install git-coregit-doc gitk
    SSH key registration
    Send again4you@gmail.com
    How to check
  • 5. User information setting
    Type shell prompt
    gitconfig --global user.name "SangjungWoo”
    gitconfig --global user.emailagain4you@gmail.com
    gitconfig --global color.ui "auto”
    gitconfig --global color.diffauto
    gitconfig --global color.statusauto
    gitconfig --global color.branchauto
    gitconfig --global core.editor "vim”
    Check
    gitconfig --global --list
  • 6. Clone repository
    Make local repository
    git clone git@github.com:sangjung/linux-kernel-study.git
  • 7. git command
    git log
    Show commit log
  • 8. git command
    git status
    Show the working tree status
  • 9. git command
    git add
    Add file contents to the index
    git add [files]
    gitadd .
  • 10. git command
    git commit
    Record changes to the repository
    git commit -m "Message”
    git commit
    Show time!
  • 11. git command
    git tag
    Create, list, delete or verify a tag object signed with GPG
    git tag
    gittag -a [Tag Name]
    gittag -d [Tag Name]
  • 12. git command
    git reset
    Reset current HEAD to the specified state
    gitreset HEAD^
    gitreset --hard (committed or tag)
  • 13. git command
    gitclean
    Remove untracked files from the working tree
    git clean –f
    gitclean –d
    gitclean -df
  • 14. git command
    gitpull
    Fetch from and merge with another repository or a local branch
  • 15. git command
    git push
    Update remote refs along with associated objects
    gitpush
    gitpush --tags
  • 16. git command
    git show
    Show various types of objects
  • 17. git command
    git diff
    Show changes between commits, commit and working tree, etc
  • 18. git command
    git help [command]
    git branch
    git fetch
    git merge
    gitk