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 101
Search
Dimitris Tsironis
May 24, 2013
Technology
0
220
Git 101
A introductor presentation for Free Friday meetups at Technological Education Institute of Piraeus
Dimitris Tsironis
May 24, 2013
Tweet
Share
More Decks by Dimitris Tsironis
See All by Dimitris Tsironis
Introduction to Digigov SDK
tsironis
0
43
How to Develop Backbone Plugins (...for the greater good!)
tsironis
0
250
Modern Webapps
tsironis
1
97
Automating your workflow with Grunt
tsironis
2
190
Git 201
tsironis
0
180
Capistrano for non-Rubyists
tsironis
4
140
HTML+CSS: how to get started
tsironis
1
78
Coffeescript: unfancy javascript
tsironis
2
460
Coffescript - take a sip of code
tsironis
4
170
Other Decks in Technology
See All in Technology
自動テストのコストと向き合ってみた
qa
0
110
20201008_ファインディ_品質意識を育てる役目は人かAIか___2_.pdf
findy_eventslides
0
120
自作LLM Native GORM Pluginで実現する AI Agentバックテスト基盤構築
po3rin
2
250
SREとソフトウェア開発者の合同チームはどのようにS3のコストを削減したか?
muziyoshiz
1
100
【新卒研修資料】LLM・生成AI研修 / Large Language Model・Generative AI
brainpadpr
23
17k
AI Agentと MCP Serverで実現する iOSアプリの 自動テスト作成の効率化
spiderplus_cb
0
490
Why Governance Matters: The Key to Reducing Risk Without Slowing Down
sarahjwells
0
110
生成AIを活用したZennの取り組み事例
ryosukeigarashi
0
200
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
20k
Optuna DashboardにおけるPLaMo2連携機能の紹介 / PFN LLM セミナー
pfn
PRO
1
880
「AI駆動PO」を考えてみる - 作る速さから価値のスループットへ:検査・適応で未来を開発 / AI-driven product owner. scrummat2025
yosuke_nagai
4
580
Where will it converge?
ibknadedeji
0
180
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
Site-Speed That Sticks
csswizardry
11
880
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Building Applications with DynamoDB
mza
96
6.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
The Cost Of JavaScript in 2023
addyosmani
53
9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
114
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Transcript
Git 101 FreeFriday @ Teipir
Real quick...
Free Fridays Discuss about technology and stuff Learn new things
and stay up-to-date Get better at what we do Enrich our education
Dimitris Tsironis Front-end Engineer at BugSense, JavaScript lover || hater,
Open-source & (Coffee)Script addict, Technology afficcionado
Source Control Management Keep your code organized in repositories Enhance
contributing Source versioning
Git Distributed Version Control System (DVCS)
Git Created by Linus Torvalds [2005] Written (mostly) in C
and Shell
Why distributed? Every developer gets a copy of the repo
Make your contributions really fast Work offline
Git installation sudo apt-get install git [Ubuntu] brew install git
[OSX] http://bit.ly/14Gqzyp [Windows]
Creating a repository $ mkdir -p ~/gitff/lecture1 $ cd ~/gitff/lecture1
$ git init
Now your folder is a git repository
Start coding! or whatever
Write some code Create a text file (touch readme.txt) Add
your name inside the file
Cool story bro! but how can I update my repo?
Commit A set of changes
The staging area All the modified/added/deleted files that are going
to be commited
git status # On branch master # # Initial commit
# # Untracked files: # (use "git add <file>..." to include in what will be committed) # # readme.txt nothing added to commit but untracked files present (use "git add" to track)
Add readme to stage git add readme.txt This command adds
readme.txt (or changes in readme.txt) to staging area
Alternative adding all files to stage git add --all This
command adds (add) all (deleted/ created/modified) files to staging area
git status # On branch master # # Initial commit
# # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: readme.txt #
Commit changes git commit -m “Initial Commit” This command creates
the commit containing the staged changes
Now add your email to readme.txt
How can I get my code to the web?
Github (Hosted) Bitbucket (Hosted) GitLab (Private) And may others
Github a web-based hosting service for software development projects that
use Git Written in Ruby on Rails and Erlang Running since 2008
Creating a new Github Repository
None
None
The remote (origin) The git path to remote repository (usually
called origin)
Add remote to local repository git remote add origin your_remote
This command adds a remote to a remote repository
git remote -v Show my remotes
Push pushing commits to remote repository
Push changes to remote repository git push origin master We
will only use master branch for the time being
Pull pulling commits from remote repository
Pull changes from remote repository git pull origin master We
will only use master branch for the time being
Clone Get a copy of a repository
Cloning a repository $ cd $ git clone https://github.com/FreeFriday/ my_first_repo.git
angels_first_repo $ cd angels_first_repo $ ls -l
Thanks! @tsironakos