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
110
About Ruby and Rails (ukr)
denys281
0
39
Як працювати на Legacy проекті та не зійти із розуму
denys281
0
71
Learn Ruby (ukr)
denys281
0
75
Other Decks in Programming
See All in Programming
AI活用は、個人から組織へ|マルチプレイヤーエージェントハーネス「QM」の社内活用事例 / AI use is moving from individuals to orgs
rkaga
1
110
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
560
AIエージェント時代のコードレビューを設計する
nogu66
6
2.7k
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
700
App Intentsのビルドプロセスを支える技術
kntkymt
0
390
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
250
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
720
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
120
Family mrubyの進捗
kishima
1
120
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
120
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
190
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
300
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
520
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Prompt Engineering for Job Search
mfonobong
0
450
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
280
Paper Plane
katiecoart
PRO
4
53k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
520
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
500
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