brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
-delete the remote | |
>> git push [remote] :[branch] | |
-delete the local | |
>> git branch -d [branch] | |
ex. | |
git push origin :dev1 | |
git branch -d dev1 |
git push -f origin HEAD\^:master | |
so commit history in the remote looks like: | |
Had to clean up some things from the merge | |
nickfloyd (author) | |
January 26, 2011 | |
commit 4bcce9878c454ba5583c | |
tree e6f4cffa47b1301a4cfc |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using NUnit.Framework; | |
namespace MyProject | |
{ | |
[TestFixture] |
public static class TestHelpers | |
{ | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out); | |
} | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out); |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace budget { | |
public class Program { | |
static void Main(string[] args) { | |
var debt = new DebtCalculation(500); |