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
Introduction to Digigov SDK
tsironis
0
38
How to Develop Backbone Plugins (...for the greater good!)
tsironis
0
240
Modern Webapps
tsironis
1
97
Automating your workflow with Grunt
tsironis
2
180
Git 201
tsironis
0
180
Capistrano for non-Rubyists
tsironis
4
140
HTML+CSS: how to get started
tsironis
1
77
Coffeescript: unfancy javascript
tsironis
2
460
Coffescript - take a sip of code
tsironis
4
170
Other Decks in Technology
See All in Technology
Witchcraft for Memory
pocke
1
310
生成AI時代の開発組織・技術・プロセス 〜 ログラスの挑戦と考察 〜
itohiro73
0
150
rubygem開発で鍛える設計力
joker1007
2
200
Prox Industries株式会社 会社紹介資料
proxindustries
0
290
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
150
Observability в PHP без боли. Олег Мифле, тимлид Altenar
lamodatech
0
350
25分で解説する「最小権限の原則」を実現するための AWS「ポリシー」大全 / 20250625-aws-summit-aws-policy
opelab
9
1.1k
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
140
Welcome to the LLM Club
koic
0
170
Windows 11 で AWS Documentation MCP Server 接続実践/practical-aws-documentation-mcp-server-connection-on-windows-11
emiki
0
960
Amazon ECS & AWS Fargate 運用アーキテクチャ2025 / Amazon ECS and AWS Fargate Ops Architecture 2025
iselegant
16
5.5k
【TiDB GAME DAY 2025】Shadowverse: Worlds Beyond にみる TiDB 活用術
cygames
0
1.1k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
For a Future-Friendly Web
brad_frost
179
9.8k
Typedesign – Prime Four
hannesfritz
42
2.7k
Designing for Performance
lara
609
69k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
4 Signs Your Business is Dying
shpigford
184
22k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
How to train your dragon (web standard)
notwaldorf
93
6.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Faster Mobile Websites
deanohume
307
31k
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