diff --git a/lib/sugarjar/commands.rb b/lib/sugarjar/commands.rb index bdb6f19..df698c6 100644 --- a/lib/sugarjar/commands.rb +++ b/lib/sugarjar/commands.rb @@ -50,6 +50,7 @@ def feature(name, base = nil) git('fetch', base_pieces[0]) if base_pieces.length > 1 end git('checkout', '-b', name, base) + git('branch', '-u', base) SugarJar::Log.info( "Created feature branch #{color(name, :green)} based on " + color(base, :green),