Skip to content

whereisjim/MortgageCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

to jumpstart this puzzles git repo into a local repo of your choices.

  1. git config --global user.name "Henry Lee"
  2. git config --global user.email [email protected]
  3. git clone git://github.com/0ishi/puzzles.git puzzles
  4. cd puzzles # change directory into your local repo.

to get to normal workflow of edit, revert, cache, commit, and push to remote.

  1. (edit files)
  2. status of your local changes (optional), e.g. git status
  3. discard your local changes (optional), e.g. git checkout .
  4. put changes to cache (also called index), e.g. git add src/Puzzles.cs
  5. get rid of changes out of cache (optional), e.g. git reset src/puzzles.java
  6. diff —cached before commit, e.g. git diff --cached
  7. commit changes, e.g. git commit -m 'added Puzzles.cs.'
  8. push to remote git repo, e.g. git push [email protected]:0ishi/puzzles.git
  9. pull from remote git repo (optional), e.g. git pull

to shortcut most common git commands using your favorite shell aliases.

alias gst='git status' # status of changes
alias gco='git checkout' # revert changes
alias gdf='git diff' # diff of index with HEAD
alias gdfcached='git diff --cached' # diff of working and index
alias gdfhead='git diff HEAD' # diff of working and HEAD
alias gad='git add' # into cache
alias gci='git commit' # commit
alias grs='git reset' # out of cache
alias gps='git push' # push
alias gpl='git pull' # pull
alias github='cd /Users/henry/github' # on mac osx
alias puzzles='cd /Users/henry/github/puzzles' # on mac osx

to produce colorful output with git commands.

git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto

resources

윈도우즈에서 Git 사용

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages