Git & GitHub

1,058 views
992 views

Published on

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

No Downloads
Views
Total views
1,058
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Git & GitHub

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

×