UNSCARED GIT
gussan
(Yoshihide Taniguchi)
with little handling Terminal
Slide 2
Slide 2 text
‣ revision control and
source code management system
‣ has all history of changes
with no network access
‣ source codes are controlled centrally
to a repository
‣ branch concept
Git is ... ?
Slide 3
Slide 3 text
‣ able to making isolated space from others
use branch
master
branch
branch B
branch A
history
changes in B
isn’t reflected to A
reflect changes in A branch
to a master branch
reflect changes in B branch
master branch has both
changes by A and B
changes in A
isn’t reflected to B
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
‣ collaborative development supporting
service for projects using git
‣ in our company ...
‣ manage and share problems / new idea ... etc
about projects
‣ review and discuss about contents members
coded / created
‣ assessment for engineer’s grade ... and more!
Github is ... ?
Slide 6
Slide 6 text
Development track
get latest codes from a repository
make isolated environment
from others (branching)
edit / add files (developing)
reflect changes to a repository
git
git
git
repeat bit by bit
till developing is
complete
merge branch to master branch
deploy
github
Slide 7
Slide 7 text
Development track
get latest codes from a repository
make isolated environment
from others (branching)
edit / add files (developing)
reflect changes to a repository
git
git
git
repeat bit by bit
till developing is
complete
merge branch to master branch
deploy
github
TODAY
TOMORROW
Slide 8
Slide 8 text
‣ interacting with a computer
using commands
‣ renaming/copying files, configuring OS,
editing documents, ... a lot more
‣ basically, we use git from a terminal
Terminal
ex ) ls -a
command option
Slide 9
Slide 9 text
‣ get latest source codes from a repository
‣ to do before development
‣ commit changes
‣ push changes to a repository
how to using Git (day1)
Slide 10
Slide 10 text
‣ get latest source codes from a repository
‣ to do before development
‣ commit changes
‣ push changes to a repository
how to using Git (day1)
Slide 11
Slide 11 text
‣ first, cloning a project from a git repository
‣ get latest changes in a project already have
get latest source codes
git clone [email protected]:gs3/first_app.git
git pull (on master branch)
Slide 12
Slide 12 text
‣ get latest source codes from a repository
‣ to do before development
‣ commit changes
‣ push changes to a repository
how to using Git (day1)
Slide 13
Slide 13 text
‣ make and switch new branch
( if you not have yet )
‣ switch existing branch
to do before developing
git checkout -b (branch name you want to naming)
git checkout (branch name you want to switch)
Slide 14
Slide 14 text
‣ get latest source codes from a repository
‣ to do before development
‣ commit changes
‣ push changes to a repository
how to using Git (day1)
Slide 15
Slide 15 text
‣ add changed files
‣ commit added files
‣ push committed files to repository
commit / push
git add .
git commit -m “(simple explanation about this committing)”
git push origin (name of branch you editing)
ex. ) “added a new logo image file”
Slide 16
Slide 16 text
‣ pull request
‣ confliction of changes
‣ deploy master branch to the server
how to using Git (day2)
github
git
webistrano