git init
git add .
add current directory to stage
git add -A
add all untrack directories and files to stage
git commit
commit staged files
git checkout -b new-branch-name
create new branch and checkout to new branch
# In Gemfile | |
# Include AWS SDK V1 for paperclip if your paperclip version is less than 5.0 | |
gem 'aws-sdk-v1' | |
# Need to AWS V2 SDK for SNS methods, gem 'aws-sdk', '~>1.6' doesn't have Aws::SNS methods | |
gem 'aws-sdk', '~> 2.0' | |
###################################################### |
# Prepare the schema for the additional session records. | |
# XXXXXXXXXXXXXXXX_create_user_session.rb | |
class CreateUserSessions < ActiveRecord::Migration | |
def change | |
create_table :user_sessions do |t| | |
t.references :user, :foreign_key => true, :index => true, :null => false | |
t.text :user_agent | |
t.datetime :expire_at # use expire_at to control the expiration after issuing JWT | |
t.timestamps null: false |
git init
git add .
add current directory to stage
git add -A
add all untrack directories and files to stage
git commit
commit staged files
git checkout -b new-branch-name
create new branch and checkout to new branch
man command
checks out the manual for the command
, for instance use man echo
to see the description of the echo
command.
Use q
to quit the manual mode, normally q
works for the similar mode entered by other command like ri Array
.