Skip to content

Instantly share code, notes, and snippets.

View simryang's full-sized avatar

Joseph simryang

  • WIZnet
  • 성남시
  • 05:09 (UTC +09:00)
View GitHub Profile
@wikibook
wikibook / learn_kr.lua
Last active February 27, 2025 01:15
learn lua 한국어판
-- 대시 두 개는 한 줄짜리 주석을 의미합니다.
--[[
[와 ]를 두 개씩 추가하면 여러 줄 주석이 됩니다.
--]]
----------------------------------------------------
-- 1. 변수와 흐름 제어
----------------------------------------------------
@trongthanh
trongthanh / gist:2779392
Last active May 14, 2025 13:55
How to move a folder from one repo to another and keep its commit history
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://server.com/my-repo1.git
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command
git filter-branch --subdirectory-filter your_dir -- -- all
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command.