如果要开发新的特性,要在新的分支上进行开发
-
git branch 显示本地所有分支
-
git branch -a 显示本地以及远端所有分支
-
git log 显示本地的 commit 历史记录
function recursiveDelDirecoty( $dir, $delMe = FALSE ) { | |
$dir = realpath( $dir ); | |
try{ | |
$it = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir, RecursiveDirectoryIterator::SKIP_DOTS ), RecursiveIteratorIterator::CHILD_FIRST ); | |
foreach( $it as $i ) { | |
if ( $i->isDir() ) { | |
rmdir( $i->getRealPath() ); | |
echo "删除". $i . "目录成功"; | |
}else{ | |
unlink( $i->getRealPath() ); |
require 'find' | |
require 'fileutils' | |
Find.find(ENV["HOME"] + "/Movies/backup") do |path| | |
if FileTest.file? path | |
if path =~ /(\d+)/ | |
old_num = $1 | |
new_num = old_num.to_i + 1 | |
new_path = path.gsub( old_num, new_num.to_s ) | |
puts "renaming #{path} to #{new_path}\n" |
如果要开发新的特性,要在新的分支上进行开发
git branch 显示本地所有分支
git branch -a 显示本地以及远端所有分支
git log 显示本地的 commit 历史记录
Received: from mail19.sendcloud.org (unknown [101.227.180.11]) | |
by newmx103.qq.com (NewMx) with SMTP id | |
for <[email protected]>; Fri, 21 Nov 2014 14:12:14 +0800 | |
X-QQ-FEAT: I0VBZjNhVPoB2VizW1VKNfwzEHh/wk1Ayezm8NFRuYe/CY1W8gkg4x8s+i55b | |
nocWIabTicaMC693fjWaHJsjx2PhOWvPVl+qqsxSYkN+3exA5S02EGDh8LQkP+y/Zcexwm4 | |
kxbzFLCau0QyJCXXYsSJ4cNQ7sZW/CT3ojqQPwJseVbn+C0YPiPJ3EnTxLGtTo6RM/IeUnb | |
7E/yZpXNCf7WDmysWeYq1P0JU7Bnz9zA= | |
X-QQ-MAILINFO: MjJD59SVx+LnP5qnRvn6Mb+6nxfomRRgidftc9HxYO7Httn7xWurqKbpO |
<div><br></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "newsletter";<[email protected]>;</div><div><b>发送时间:</b> 2013年9月17日(星期二) 中午12:13</div><div><b>收件人:</b> "yuyou"<[email protected]>; <wbr></div><div></div><div><b>主题:</b> Tower每月消息(2013年09月17日)</div></div><div><br></div> | |
<div style="background:#EDEDED url('http://towerfiles.oss.aliyuncs.com/newsletter_static/header_bg_01-0913.jpg') 50% 12px no-repeat; min-width:700px; padding:50px 30px 30px; margin:0; font-size:16px; line-height:1.6;"> | |
<div class="twr-newsletter-content" style=" | |
background:#fff; | |
border:1px solid #ccc; | |
border-top:0; | |
max-width:700px; min-width:700px; | |
margin:0 auto; | |
padding:0 | |
"> |
#!/usr/bin/env ruby | |
# | |
# Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks | |
# | |
# Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script. | |
# | |
# Nokogiri works at a very low level, so it has many issues on various platforms. | |
# As a result, the command `install gem nokogiri` often will fail. This fix is for | |
# errors involving 'libiconv', such as the following one I encountered: | |
# |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |