phpug cologne - git presentation
-
Upload
celestino-diaz -
Category
Technology
-
view
387 -
download
2
description
Transcript of phpug cologne - git presentation
![Page 1: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/1.jpg)
![Page 2: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/2.jpg)
about me❏ Celestino Diaz Teran
❏ senior software developer
❏ free software enthusiast
❏ clean code fanatic
❏ http://manifesto.softwarecraftsmanship.org
❏ http://github.com/celestino
![Page 3: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/3.jpg)
git ssh
![Page 4: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/4.jpg)
useradd
![Page 5: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/5.jpg)
init --bare
![Page 6: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/6.jpg)
git-shell
![Page 7: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/7.jpg)
git-shell commands
![Page 8: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/8.jpg)
ssh login
![Page 9: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/9.jpg)
git http(s)
![Page 10: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/10.jpg)
update-server-info
![Page 11: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/11.jpg)
phpug.cologne.git
![Page 12: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/12.jpg)
git remote
![Page 13: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/13.jpg)
clone http - push ssh
![Page 14: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/14.jpg)
remote update
![Page 15: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/15.jpg)
git commands
![Page 16: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/16.jpg)
git initinitialize repository with working copy
git init --bareinitialize 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] -ldisplay 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 --decorateshow branch log entries in a nice format as a graph
![Page 17: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/17.jpg)
git fetch [-v] <remote>download objects and refs from another repository
git fetch --alldownload 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 -alist local and remote branches
git branch -d | -Ddelete 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 listlist 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 mergejoin development histories together (fast forward)
git merge --no-ffjoin development histories together (no fast forward)
git rebaseforward 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
![Page 18: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/18.jpg)
demo
![Page 19: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/19.jpg)
questions ?
![Page 20: phpug cologne - git presentation](https://reader033.fdocuments.net/reader033/viewer/2022051515/55381b50550346b82d8b473e/html5/thumbnails/20.jpg)
thank you !