Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WP Meetup Frankfurt – Einstieg in git
Search
Benjamin Ackermann
January 09, 2018
Programming
0
160
WP Meetup Frankfurt – Einstieg in git
Benjamin Ackermann
January 09, 2018
Tweet
Share
Other Decks in Programming
See All in Programming
Ruby Pattern Matching
bkuhlmann
0
920
使ってみよう Azure AI Document Intelligence
kosmosebi
2
300
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
290
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
360
What We Can Learn From OSS
inouehi
0
420
Ruby Function Composition
bkuhlmann
1
330
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
180
Semantic search with Django and pgvector
pauloxnet
0
240
Ruby GitHub Packages
bkuhlmann
0
630
"config" ってなんだ? / What is "config"?
okashoi
0
240
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
Featured
See All Featured
Making Projects Easy
brettharned
108
5.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
Thoughts on Productivity
jonyablonski
58
3.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
How to Ace a Technical Interview
jacobian
272
22k
Optimizing for Happiness
mojombo
370
69k
Ruby is Unlike a Banana
tanoku
96
10k
Docker and Python
trallard
34
2.7k
Into the Great Unknown - MozCon
thekraken
10
990
Testing 201, or: Great Expectations
jmmastey
28
6.3k
Transcript
EINSTIEG IN GIT EINSTIEG IN GIT (Simon Kraft, Benjamin Ackermann)
WARUM ÜBERHAUPT GIT? WARUM ÜBERHAUPT GIT? Versionsverwaltung
LOKALE VERSIONSVERWALTUNG LOKALE VERSIONSVERWALTUNG z.B. SCCS, RCS (Bild: https://rogerdudler.github.io/git-guide/index.de.html)
ZENTRALE VERSIONSVERWALTUNG ZENTRALE VERSIONSVERWALTUNG z.B. CVS, SVN (Bild: https://rogerdudler.github.io/git-guide/index.de.html)
VERTEILTE VERSIONSVERWALTUNG VERTEILTE VERSIONSVERWALTUNG z.B. Mercurial, Git (Bild: https://rogerdudler.github.io/git-guide/index.de.html)
INSTALLATION INSTALLATION Download: https://git-scm.com/downloads
NOTWENDIGE KONFIGURATION NOTWENDIGE KONFIGURATION git config --global user.name "Max Mustermann"
git config --global user.email
[email protected]
(Nur einmalig pro Rechner notwendig)
SINNVOLLE KONFIGURATION SINNVOLLE KONFIGURATION git config color.ui true git config
format.pretty oneline git config --global alias.lg "log --color --graph --pretty=format:'% --abbrev-commit" (Nur einmalig pro Rechner notwendig)
GIT WORKFLOW GIT WORKFLOW DREI STADIEN DREI STADIEN Working directory
Staging Area Repository
GIT WORKFLOW - DREI STADIEN GIT WORKFLOW - DREI STADIEN
(Bild: https://rogerdudler.github.io/git-guide/index.de.html)
"STATUS DER DATEIEN" "STATUS DER DATEIEN" (Bild: https://rogerdudler.github.io/git-guide/index.de.html)
LOS GEHT'S... LOS GEHT'S...
NEUES REPOSITORY ERSTELLEN NEUES REPOSITORY ERSTELLEN git init
REPOSITORY AUSCHECKEN REPOSITORY AUSCHECKEN git clone benutzername@host:/pfad/zum/repository
ADD & COMMIT ADD & COMMIT git add git add
* git add . git commit -m "Commit-Nachricht"
ÄNDERUNGEN HOCHLADEN ÄNDERUNGEN HOCHLADEN git push git push origin master
git remote add origin < server >
BRANCHING BRANCHING git checkout -b feature_x git checkout master git
branch -d feature_x git push origin < branch >
UPDATE & MERGE UPDATE & MERGE git pull git merge
< branch > git add < dateiname > git diff < quell_branch > < ziel_branch >
LOGS ANSCHAUEN LOGS ANSCHAUEN git log
ÄNDERUNGEN ZURÜCKNEHMEN ÄNDERUNGEN ZURÜCKNEHMEN git checkout -- < filename >
git fetch origin git reset --hard origin/master
WEITERE QUELLEN WEITERE QUELLEN https://rogerdudler.github.io/git-guide/ https://try.github.io/