Skip to content

Instantly share code, notes, and snippets.

@rolroralra
Last active October 22, 2022 01:49
Show Gist options
  • Save rolroralra/8fcb221bfe96374af29586d484eaf70c to your computer and use it in GitHub Desktop.
Save rolroralra/8fcb221bfe96374af29586d484eaf70c to your computer and use it in GitHub Desktop.
Git

Git 기본 정석

https://backlog.com/git-tutorial/kr/


git tutorial

https://learngitbranching.js.org/?locale=ko


GitFlow

http://danielkummer.github.io/git-flow-cheatsheet/index.ko_KR.html

GitFlow branch 전략 그림

image

https://blog.gangnamunni.com/post/understanding_git_flow/


git rebase -i (interactive)

https://wormwlrm.github.io/2020/09/03/Git-rebase-with-interactive-option.html


git stash

https://gmlwjd9405.github.io/2018/05/18/git-stash.html


Gerrit

https://d2.naver.com/helloworld/6033708


.gitconfig

Details

[user]
  name = rolroralra
  email = [email protected]

[user "https://github.com"]
  name = rolroralra
  email = [email protected]

[user "https://code.sdsdev.co.kr"]
  name = shyoung.kim
  email = [email protected]
  
[http "https://code.sdsdev.co.kr"]
  proxy=http://70.10.15.10:8080
  sslVerify=false
  
[https "https://code.sdsdev.co.kr"]
  proxy=http://70.10.15.10:8080
  
credential.helper=cache

[email protected]:.insteadof=https://gl.deliver.foundation/


How to set auto credential

$ git config --global credential.helper cache

How to delete remote branch

# Way 1
$ git push origin --delete [remote_branch_name]

# Way 2
$ git branch -d [remote_branch_name]
$ git push origin [remote_branch_name]

Filename Too Long

$ git config --global core.longpaths true

.gitattributes

Details

# from "https://github.com/alexkaratarakis/gitattributes/blob/master/Web.gitattributes"
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
#   text    These files should be normalized (i.e. convert CRLF to LF).
#   binary  These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################

## AUTO-DETECT
##   Handle line endings automatically for files detected as
##   text and leave all files detected as binary untouched.
##   This will handle all files NOT defined below.
* text=auto

## SOURCE CODE
*.bat      text eol=crlf
*.coffee   text
*.css      text
*.htm      text diff=html
*.html     text diff=html
*.inc      text
*.ini      text
*.js       text
*.json     text
*.jsx      text
*.less     text
*.od       text
*.onlydata text
*.php      text diff=php
*.pl       text
*.py       text diff=python
*.rb       text diff=ruby
*.sass     text
*.scm      text
*.scss     text
*.sh       text eol=lf
*.sql      text
*.styl     text
*.tag      text
*.ts       text
*.tsx      text
*.vue      text
*.xml      text
*.xhtml    text diff=html

## DOCKER
*.dockerignore    text
Dockerfile    text

## DOCUMENTATION
*.ipynb      text
*.markdown   text
*.md         text
*.mdwn       text
*.mdown      text
*.mkd        text
*.mkdn       text
*.mdtxt      text
*.mdtext     text
*.txt        text
AUTHORS      text
CHANGELOG    text
CHANGES      text
CONTRIBUTING text
COPYING      text
copyright    text
*COPYRIGHT*  text
INSTALL      text
license      text
LICENSE      text
NEWS         text
readme       text
*README*     text
TODO         text

## TEMPLATES
*.dot        text
*.ejs        text
*.haml       text
*.handlebars text
*.hbs        text
*.hbt        text
*.jade       text
*.latte      text
*.mustache   text
*.njk        text
*.phtml      text
*.tmpl       text
*.tpl        text
*.twig       text

## LINTERS
.csslintrc    text
.eslintrc     text
.htmlhintrc   text
.jscsrc       text
.jshintrc     text
.jshintignore text
.stylelintrc  text

## CONFIGS
*.bowerrc      text
*.cnf          text
*.conf         text
*.config       text
.babelrc       text
.browserslistrc    text
.editorconfig  text
.env           text
.gitattributes text
.gitconfig     text
.htaccess      text
*.lock         text
*.npmignore    text
*.yaml         text
*.yml          text
browserslist   text
Makefile       text
makefile       text

## HEROKU
Procfile    text
.slugignore text

## GRAPHICS
*.ai   binary
*.bmp  binary
*.eps  binary
*.gif  binary
*.ico  binary
*.jng  binary
*.jp2  binary
*.jpg  binary
*.jpeg binary
*.jpx  binary
*.jxr  binary
*.pdf  binary
*.png  binary
*.psb  binary
*.psd  binary
*.svg  text
*.svgz binary
*.tif  binary
*.tiff binary
*.wbmp binary
*.webp binary

## AUDIO
*.kar  binary
*.m4a  binary
*.mid  binary
*.midi binary
*.mp3  binary
*.ogg  binary
*.ra   binary

## VIDEO
*.3gpp binary
*.3gp  binary
*.as   binary
*.asf  binary
*.asx  binary
*.fla  binary
*.flv  binary
*.m4v  binary
*.mng  binary
*.mov  binary
*.mp4  binary
*.mpeg binary
*.mpg  binary
*.ogv  binary
*.swc  binary
*.swf  binary
*.webm binary

## ARCHIVES
*.7z  binary
*.gz  binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

## FONTS
*.ttf   binary
*.eot   binary
*.otf   binary
*.woff  binary
*.woff2 binary

## EXECUTABLES
*.exe binary
*.pyc binary

### SOME ADDITIONAL ATTRIBUTES
*.doc binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment