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
Git For Humans - Holiday Extras - 14/08/2015
Search
Dan Cork
August 14, 2015
Technology
250
0
Share
Git For Humans - Holiday Extras - 14/08/2015
An internal talk introducing git terminology and workflow
Dan Cork
August 14, 2015
More Decks by Dan Cork
See All by Dan Cork
Paradox of Choice
dancork
0
41
Unify The UI With React
dancork
0
250
Talking Tech Jan 2016
dancork
0
65
Give CSS3 Some Love / FOWD2015
dancork
0
280
Other Decks in Technology
See All in Technology
AI와 협업하는 조직으로의 여정
arawn
0
510
データを"持てない"環境でのアノテーション基盤設計
sansantech
PRO
1
140
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
400
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
2.2k
Keeping Ruby Running on Cygwin
fd0
0
180
AndroidアプリとCopilot Studioの統合
nakasho
0
150
AI時代のガードレールとしてのAPIガバナンス
nagix
0
310
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
400
これからの「データマネジメント」の話をしよう
sansantech
PRO
0
150
LLM時代の検索アーキテクチャと技術的意思決定
shibuiwilliam
3
1.5k
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
850
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
160
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Technical Leadership for Architectural Decision Making
baasie
3
340
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Done Done
chrislema
186
16k
Documentation Writing (for coders)
carmenintech
77
5.3k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1k
For a Future-Friendly Web
brad_frost
183
10k
Bash Introduction
62gerente
615
210k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
180
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Transcript
git for humans
What is git
Git is a free and open source distributed version control
system designed to handle everything from small to very large projects with speed and efficiency. http://git-scm.com/
Git is a free and open source distributed version control
system designed to handle everything from small to very large projects with speed and efficiency. http://git-scm.com/
Version Control System (VCS)
Source Control Management (SCM)
collection of files
every change tracked
who
when
why
Mostly used for code
Why do we use it
simultaneous working
easy to rollback
multiple backups multiple locations
Terminology
Setting Up
Repo (Repository)
files & history
None
$ git init
Remote
None
$ git remote
origin sandbox production
origin sandbox production
Clone
None
None
$ git clone {url}
None
None
$ git remote add {alias} {url}
Git is a free and open source distributed version control
system designed to handle everything from small to very large projects with speed and efficiency.
Centralised
Distributed
Starting Your Work
Branch
$ git checkout {branch}
$ git checkout -b {branch}
master
master cool-thing
$ git checkout -b cool-thing
master cool-thing
master cool-thing
$ git checkout -
$ git fetch
Submitting Changes
Diff
$ git diff
- I removed this + and added this
$ git add -p
Stage
$ git add {file}
$ git status
$ git add .
Commit
$ git commit -m “{message}”
Push
$ git push {remote} {branch}
$ git push {remote} {branch}:{remote- branch}
Do some codings Stage changes Commit changes Push to remote
In History Not In History
Staying Up-to-date
Pull
$ git pull {remote} {branch}
Merge
master cool-thing
master cool-thing
$ git merge {branch}
Rebase
master cool-thing
master cool-thing
$ git rebase {branch}
Conflicts
<<<<<<< HEAD my code ======= someone else’s code >>>>>>> master
Merge/Rebase Resolve Conflicts Stage Commit
Rolling Back
Before Staging
$ git checkout {file}
$ git checkout .
Once Staged
Reset
$ git reset
$ git reset --hard
Once Committed
Revert
$ git revert {commit}
$ git log
commit abcdefghijklmnop Author: joeblogg <
[email protected]
> Date: Fri Aug 7 13:19:34
2015 +0100 My super awesome change
commit abcdefghijklmnop Author: joeblogg <
[email protected]
> Date: Fri Aug 7 13:19:34
2015 +0100 My super awesome change
Questions?