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
210
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
How to Develop Backbone Plugins (...for the greater good!)
tsironis
0
220
Modern Webapps
tsironis
1
91
Automating your workflow with Grunt
tsironis
2
180
Git 201
tsironis
0
160
Capistrano for non-Rubyists
tsironis
4
140
HTML+CSS: how to get started
tsironis
1
73
Coffeescript: unfancy javascript
tsironis
2
440
Coffescript - take a sip of code
tsironis
4
160
Startup Weekend Next Presentation
tsironis
2
160
Other Decks in Technology
See All in Technology
ビジネスと現場活動をつなぐソフトウェアエンジニアリング~とあるスタートアッププロダクトの成長記録より~
mizunori
0
210
トラシューアニマルになろう ~開発者だからこそできる、安定したサービス作りの秘訣~
jacopen
2
1.5k
目の前の仕事と向き合うことで成長できる - 仕事とスキルを広げる / Every little bit counts
soudai
22
5.8k
【Developers Summit 2025】プロダクトエンジニアから学ぶ、 ユーザーにより高い価値を届ける技術
niwatakeru
2
890
データ資産をシームレスに伝達するためのイベント駆動型アーキテクチャ
kakehashi
PRO
2
230
『衛星データ利用の方々にとって近いようで触れる機会のなさそうな小話 ~ 衛星搭載ソフトウェアと衛星運用ソフトウェア (実物) を動かしながらわいわいする編 ~』 @日本衛星データコミニティ勉強会
meltingrabbit
0
120
『AWS Distinguished Engineerに学ぶ リトライの技術』 #ARC403/Marc Brooker on Try again: The tools and techniques behind resilient systems
quiver
0
130
20250208_OpenAIDeepResearchがやばいという話
doradora09
PRO
0
170
TAMとre:Capセキュリティ編 〜拡張脅威検出デモを添えて〜
fujiihda
0
100
オブザーバビリティの観点でみるAWS / AWS from observability perspective
ymotongpoo
7
1k
WAF に頼りすぎない AWS WAF 運用術 meguro sec #1
izzii
0
460
君はPostScriptなウィンドウシステム 「NeWS」をご存知か?/sunnews
koyhoge
0
720
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Statistics for Hackers
jakevdp
797
220k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Being A Developer After 40
akosma
89
590k
Visualization
eitanlees
146
15k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Site-Speed That Sticks
csswizardry
3
370
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