Your SlideShare is downloading. ×
phpug cologne - git presentation
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

phpug cologne - git presentation

291
views

Published on

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
291
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
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. about me ❏ Celestino Diaz Teran ❏ senior software developer ❏ free software enthusiast ❏ clean code fanatic ❏ http://manifesto.softwarecraftsmanship.org ❏ http://github.com/celestino
  • 2. git ssh
  • 3. useradd
  • 4. init --bare
  • 5. git-shell
  • 6. git-shell commands
  • 7. ssh login
  • 8. git http(s)
  • 9. update-server-info
  • 10. phpug.cologne.git
  • 11. git remote
  • 12. clone http - push ssh
  • 13. remote update
  • 14. git commands
  • 15. git init initialize repository with working copy git init --bare initialize repository without working copy git clone <target> clone a repository into a new directory git config --global <name = value> configure users ~/.gitconfig git config --local <name = value> configure current repository .git/config git config [type] -l display the current configuration as a list git config <name> display the configuration value of name git remote add <local-name> <target> add remote repository git remote remove <local-name> remove remote repository git remote [-v] update <name> update local remote branches git remote show <name> display remote and configured branches git remote prune [-n] <name> prune remote missed branches git log -<number> show branch log entries git log --oneline --graph --decorate show branch log entries in a nice format as a graph
  • 16. git fetch [-v] <remote> download objects and refs from another repository git fetch --all download objects and refs from all repositories git pull <remote> <branch> automatic git fetch and merge (fast forward) git branch <name> create branch with the given name git branch -a list local and remote branches git branch -d | -D delete local branches (-D for branches with changes) git stash save <comment> save current branch changes to a stack git stash apply <stash> apply current branch changes to a stack git stash list list current stack entries git checkout <branch-name> checkout an existing branch or paths to the working tree git checkout -b <branch-name> create & checkout a branch or paths to the working tree git merge join development histories together (fast forward) git merge --no-ff join development histories together (no fast forward) git rebase forward local commits to the updated upstream head git reset <commit> reset current HEAD to the specified state git reset --hard <commit> reset current BRANCH to the specified state
  • 17. demo
  • 18. questions ?
  • 19. thank you !