Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git intro
Search
Denys Kurets
October 05, 2018
Programming
63
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git intro
Denys Kurets
October 05, 2018
More Decks by Denys Kurets
See All by Denys Kurets
Rails_Girls_2019.pdf
denys281
0
120
About Ruby and Rails (ukr)
denys281
0
40
Як працювати на Legacy проекті та не зійти із розуму
denys281
0
72
Learn Ruby (ukr)
denys281
0
76
Other Decks in Programming
See All in Programming
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
350
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
370
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
200
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
110
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
150
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
APNsからLive Activityを開始する話
yumnumm
0
160
golang-bob.pdf
iwatsukayura
0
120
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.1k
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
140
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Making Projects Easy
brettharned
120
6.8k
Thoughts on Productivity
jonyablonski
76
5.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Odyssey Design
rkendrick25
PRO
2
870
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Transcript
ПРИВІТ
Денис Курець Ruby developer у Intellias @denys281
[email protected]
Опитування • Що таке git • Що таке commit •
Що таке push/pull • Що таке merge • Що таке rebase • Що таке GitHub • Що таке fork
Git
None
Мета
До воркшопу
Після воркшопу
Disclaimer
Проблема 1
None
Версії!
Проблема 2
None
Проблема 3
None
Проблема 4
None
None
None
None
https://en.wikipedia.org/wiki/List_of_version_control_software
Git крізь проекти
https://www.youtube.com/watch?v=4XpnKHJAok8 “I'm an egotistical bastard, so I name all my
projects after myself. First Linux, now git.”
Distributed Version Control Systems
Config
None
.gitignore
git init #initialize empty repo git add . #add untracked
files git status #status git commit -am “init" #commit
git add . #add untracked files git add index.html git
status #status git commit -m “change content” #commit
-m vs -am
None
git remote add origin
[email protected]
:denys281/git.git
git push origin master
git checkout -b new_page #create new branch git add .
#add untracked files git push origin new_page #publish new branch git branch #list of available branches git checkout master #switch to master branch
None
None
None
https://github.com/torvalds/linux/pull/17
None
None
git clone <repo url> #create new branch
https://help.github.com/articles/connecting-to-github-with-ssh/
git remove add upstream <url> add repo git fetch upstream
#fetch branches from upstream repo git merge upstream/master #merge changes to local branches git pull # (git fetch and then git merge)
git merge —no-ff git merge
None
None
None
git rebase Робити можна тільки на своїй вітці!
git checkout you_branch . git fetch git rebase master git
push origin you_branch — force #dangerous
None
None
None
None
rebase тільки у свої гілці, коли нема інших контрибюторів!
ще команди • git commit -- amend #reword commit message
(not pushed) • git reset -- hard HEAD~1 #reset to commit • git reset -- soft HEAD~1 #soft reset to commit • git branch -m oldname newname #rename branch • git cherry-pick <commit> #apply commit from another branch • git checkout <file> #revert to last commit • git branch -d <branch name> #delete branch • git blame <commit hash> #see who did canges • git stash
Більше команд
Хороший commit message
None
None
git-flow
None
None
None
None
None
None
None
None
None
None
None
None
None
https://tinyurl.com/wmt-git