Skip to content

Instantly share code, notes, and snippets.

View ykc415's full-sized avatar
👻
hello world

ykc ykc415

👻
hello world
  • Seoul, South Korea
View GitHub Profile
@ykc415
ykc415 / gist:3cbd50fdce3fe099077f9e044d7320a2
Created May 19, 2019 14:12
깃 서브 디렉토리 레포 분리하기
Android, Ios 저장소 분리
레포 클론
git clone <리포주소>
레포나누고 커밋로그 가져오기
안드
git filter-branch --prune-empty --subdirectory-filter apps/android -- --all
IOS
git filter-branch --prune-empty --subdirectory-filter apps/ios -- --all
@ykc415
ykc415 / git-filter-branch-move-files.md
Created May 17, 2019 07:33 — forked from fabiomaggio/git-filter-branch-move-files.md
Use git filter-branch to move all projects files to a subdir and rewrite all commits
  1. Clone project

  2. Checkout all branches that contain the files that should be moved

  3. Delete the remote

  4. Run the filter-branch command:

    git filter-branch --tree-filter 'mkdir -p /path/to/tmp; mv * /path/to/tmp; mkdir subdir; mv /path/to/tmp/* subdir/' --tag-name-filter cat --prune-empty -- --all
    • All files are first copied to a temporary dir and move from there to the new destination
  • Existing tags are updated
@ykc415
ykc415 / EpoxyGlidePreloader.kt
Created May 5, 2019 12:35 — forked from elihart/EpoxyGlidePreloader.kt
Utility to set up a RecyclerView scroll listener that enables preloading support with Glide in Epoxy library usages.
package com.airbnb.epoxy
import android.content.Context
import android.graphics.Bitmap
import android.support.annotation.IdRes
import android.support.annotation.Px
import android.support.v7.widget.RecyclerView
import android.view.View
import com.bumptech.glide.Glide
import com.bumptech.glide.RequestBuilder