Git 설치 과정
Last login: Tue Jun 5 19:12:53 on ttys002
ysparkui-MacBook-Pro:~ yspark$ git config --global user.name "yspark"
ysparkui-MacBook-Pro:~ yspark$ git config --global user.email ys791029@naver.comysparkui-MacBook-Pro:~ yspark$ git confit --global alias.co checkout
git: 'confit' is not a git command. See 'git --help'.
Did you mean this?
config
ysparkui-MacBook-Pro:~ yspark$ git config --global alias.co checkout
ysparkui-MacBook-Pro:~ yspark$ git config --global core.editor "mate -w"
ysparkui-MacBook-Pro:~ yspark$ git init
Initialized empty Git repository in /Users/yspark/.git/
ysparkui-MacBook-Pro:~ yspark$ ls
AppData Public
Applications Work
Applications (Parallels) dev
Desktop falling-summer-3143
Documents first_app
Downloads myapp
Flux.app rails_projects
Flux_3260.zip rubygems
Library server
Movies sqlite3
Music 백업
Pictures
ysparkui-MacBook-Pro:~ yspark$ cd first_app/
ysparkui-MacBook-Pro:first_app yspark$ git config --global user.name "yspark"
ysparkui-MacBook-Pro:first_app yspark$ git config --global user.email ys790129@naver.com
ysparkui-MacBook-Pro:first_app yspark$ git config --global alias.co checkout
ysparkui-MacBook-Pro:first_app yspark$ git config --global core.editor "mate -w"ysparkui-MacBook-Pro:first_app yspark$ git init
Initialized empty Git repository in /Users/yspark/first_app/.git/
ysparkui-MacBook-Pro:first_app yspark$ git add .
ysparkui-MacBook-Pro:first_app yspark$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: .gitignore
# new file: Gemfile
# new file: Gemfile.lock
# new file: README.rdoc
# new file: Rakefile
# new file: app/assets/images/rails.png
# new file: app/assets/javascripts/application.js
# new file: app/assets/stylesheets/application.css
# new file: app/controllers/application_controller.rb
# new file: app/helpers/application_helper.rb
# new file: app/mailers/.gitkeep
# new file: app/models/.gitkeep
# new file: app/views/layouts/application.html.erb
# new file: config.ru
# new file: config/application.rb
# new file: config/boot.rb
# new file: config/database.yml
# new file: config/environment.rb
# new file: config/environments/development.rb
# new file: config/environments/production.rb
# new file: config/environments/test.rb
# new file: config/initializers/backtrace_silencers.rb
# new file: config/initializers/inflections.rb
# new file: config/initializers/mime_types.rb
# new file: config/initializers/secret_token.rb
# new file: config/initializers/session_store.rb
# new file: config/initializers/wrap_parameters.rb
# new file: config/locales/en.yml
# new file: config/routes.rb
# new file: db/seeds.rb
# new file: doc/README_FOR_APP
# new file: lib/assets/.gitkeep
# new file: lib/tasks/.gitkeep
# new file: log/.gitkeep
# new file: public/404.html
# new file: public/422.html
# new file: public/500.html
# new file: public/favicon.ico
# new file: public/index.html
# new file: public/robots.txt
# new file: script/rails
# new file: test/fixtures/.gitkeep
# new file: test/functional/.gitkeep
# new file: test/integration/.gitkeep
# new file: test/performance/browsing_test.rb
# new file: test/test_helper.rb
# new file: test/unit/.gitkeep
# new file: vendor/assets/javascripts/.gitkeep
# new file: vendor/assets/stylesheets/.gitkeep
# new file: vendor/plugins/.gitkeep
#
ysparkui-MacBook-Pro:first_app yspark$ git commit -m "Initial commit"
[master (root-commit) 084e7d2] Initial commit
37 files changed, 1206 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 README.rdoc
create mode 100644 Rakefile
create mode 100644 app/assets/images/rails.png
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/mailers/.gitkeep
create mode 100644 app/models/.gitkeep
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 lib/assets/.gitkeep
create mode 100644 lib/tasks/.gitkeep
create mode 100644 log/.gitkeep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/index.html
create mode 100644 public/robots.txt
create mode 100755 script/rails
create mode 100644 test/fixtures/.gitkeep
create mode 100644 test/functional/.gitkeep
create mode 100644 test/integration/.gitkeep
create mode 100644 test/performance/browsing_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 test/unit/.gitkeep
create mode 100644 vendor/assets/javascripts/.gitkeep
create mode 100644 vendor/assets/stylesheets/.gitkeep
create mode 100644 vendor/plugins/.gitkeep
ysparkui-MacBook-Pro:first_app yspark$ git log
commit 084e7d277c52125c9d317a5d901d8a27351c9cd7
Author: yspark <ys790129@naver.com>
Date: Tue Jun 5 20:58:50 2012 +0900
Initial commit
ysparkui-MacBook-Pro:first_app yspark$ ls app/controllers/
application_controller.rb
ysparkui-MacBook-Pro:first_app yspark$ ls
Gemfile app doc script
Gemfile.lock config lib test
README.rdoc config.ru log tmp
Rakefile db public vendor
ysparkui-MacBook-Pro:first_app yspark$ rm -rf app/controllers
ysparkui-MacBook-Pro:first_app yspark$ ls app/controllers
ls: app/controllers: No such file or directory
ysparkui-MacBook-Pro:first_app yspark$ git status
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: app/controllers/application_controller.rb
#
no changes added to commit (use "git add" and/or "git commit -a")
ysparkui-MacBook-Pro:first_app yspark$ git checkout -f
ysparkui-MacBook-Pro:first_app yspark$ git status
# On branch master
nothing to commit (working directory clean)
ysparkui-MacBook-Pro:first_app yspark$ ls app/controllers
application_controller.rb
GitHub
application_controller.rb