Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting started with Git+FubuMVC on Windows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chad Myers  
View profile  
 More options Jan 12 2010, 1:38 pm
From: Chad Myers <chad.my...@gmail.com>
Date: Tue, 12 Jan 2010 12:38:49 -0600
Local: Tues, Jan 12 2010 1:38 pm
Subject: Getting started with Git+FubuMVC on Windows

SETTING UP YOUR PRIVATE FORK (ONE TIME ONLY)
Description: In git, you don't work off the main repo. You fork it into your
own repo, work there, and then send "pull requests" to the main. One of the
main committers/maintainers will then review your request and "pull" it into
the mainline repo.

1.) First, create a Github account (www.github.com) if you don't have one
already.

2.) Fork the FubuMVC repository via your web browser from here:
http://github.com/DarthFubuMVC/fubumvc

NOTE the "Private" git address for this repo. It should be something like:
g...@github.com:chadmyers/fubumvc.git

SETTING UP YOUR LOCAL DEV ENVIRONMENT (ONE TIME ONLY)
Description: Get git up and running locally so you can pull down the source
and contribute to your own repo.

1.) First, get Cygwin + Git (or you can use msysGit, but I did the Cygwin
one and it works):
http://airto.hosted.ats.ucla.edu/wiki/index.php/Setting_Up_and_Using_...

2.) Open a cmd.exe and type "git". It should say something other than "git
is not recognized blah blah blah".

3.) Set git with some global defaults:

From a command-line, type:

git config --global user.name "Your Name"
git config --global user.email "Your Email {preferably the same one you used
to set up your github account}"
git config --global core.autocrlf false

4.) Create your public/private keypair and associate it with your github
account (Git uses keys for authentication)

http://help.github.com/msysgit-key-setup/

That link/guid is for msysgit, but the process is the same with Cygwin+Git.

GETTING YOUR REPO (ONE TIME ONLY)
Description:  This will pull down the code from Github locally so you can
work with it and start the normal everyday Git workflow

1.) Open a command-line and CD to your code folder (where you keep all your
other projects)

2.) Remember your private git address for your repo/fork?  You'll need that
now.

3.) Type:  git clone YourPrivateGitAddress

It should now start pulling down your repo. It was most likely named
'fubumvc', so it'll create a 'fubumvc' folder under your code folder.

4.) CD to the fubumvc folder.  Do a 'dir' and you should see things like
"src" dir and "Rakefile".

5.) Type "rake" and it should build and run all the tests.  If Rake doesn't
work, then you don't have Ruby set up properly. That's OK, just open
Explorer, go to the fubumvc folder, then to the "src" folder, then open the
FubuMVC.sln file and try to build it in Visual Studio.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh Flanagan  
View profile  
 More options Jan 12 2010, 2:07 pm
From: Josh Flanagan <joshuaflana...@gmail.com>
Date: Tue, 12 Jan 2010 13:07:27 -0600
Local: Tues, Jan 12 2010 2:07 pm
Subject: Re: [fubumvc] Getting started with Git+FubuMVC on Windows
I assume I'm not the only git noob on the list, so I figured I'd chime
in with a couple tips that I've learned that have made my git adoption
smoother.

1) Pay attention to Chad's advice to set autocrlf=false. There is a
lot of confusing information on the "git for windows" tutorials that
are out there, and many suggest you enable autocrlf. What I've come to
understand is that really only applies if you are committing to a
linux based project (like, say, the linux kernel). If you are working
mostly on Windows-based projects, you dont want git's "help" in
"fixing" your files. Setting autocrlf=false tells git "leave my files
alone, I like the line endings exactly how they are".

2) Always work in a branch locally. After you clone the repo and
before you start making any changes, create a branch. Once you are
happy with your changes, merge your branch back into master, and then
push master to your remote repo.
This gives you at least 2 benefits that I've found useful:
- if you want to throw away your changes, just switch back to master
and delete that branch. I know there is a way to do it, but I've had
so much trouble trying to tell git to throw away my recent changes.
Just blowing away the branch is easy and works.
- if you want to work on a different task that is a tangent from your
original task, just switch back to master and create a new branch. It
wont have any of your in-progress changes from the first branch. This
allows you to commit the work from the 2nd task before finishing the
1st task.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Keeping  
View profile  
 More options Jan 12 2010, 2:34 pm
From: Ben Keeping <benjaminkeep...@googlemail.com>
Date: Tue, 12 Jan 2010 11:34:40 -0800 (PST)
Local: Tues, Jan 12 2010 2:34 pm
Subject: Re: Getting started with Git+FubuMVC on Windows
Just some thoughts from another GitHub / git noob :

I didn't fancy installing cygwin, so I used with no problems msysgit
http://msysgit.googlecode.com/files/Git-1.6.5.1-preview20091022.exe

When you create your GitHub account, I'd create your SSH/RSA key
before forking the fubumvc repo, because it needs it. If you don't,
its OK, you just have to go to the Admin settings on your GitHub
account and add a new key.

If you've not installed Ruby (and Rake) before, then you need to do a
"gem install rubyzip" before you build the src, else it will error
with a "cannot find zip/zip" thing.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chad Myers  
View profile  
 More options Jan 12 2010, 3:08 pm
From: Chad Myers <chad.my...@gmail.com>
Date: Tue, 12 Jan 2010 14:08:34 -0600
Local: Tues, Jan 12 2010 3:08 pm
Subject: Re: [fubumvc] Re: Getting started with Git+FubuMVC on Windows

Side note about the rubyzip thing:

Run "installgems.bat" in the FubuMVC root dir and it should load all the
gems necessary to Rake fubu (and probably a few others)

-Chad

On Tue, Jan 12, 2010 at 1:34 PM, Ben Keeping <benjaminkeep...@googlemail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chad Myers  
View profile  
 More options Jan 12 2010, 3:10 pm
From: Chad Myers <chad.my...@gmail.com>
Date: Tue, 12 Jan 2010 14:10:08 -0600
Local: Tues, Jan 12 2010 3:10 pm
Subject: Re: [fubumvc] Getting started with Git+FubuMVC on Windows

Thanks Josh!

One quick additional point for Git noobs:  Git's main power is in branching.
 If you abhorred branching in VSS, and tentatively did it in SVN (but it was
still somewhat painful),  Git makes branching very near pain-free. Branching
is a main part of the day-to-day workflow of Git.  Use it liberally and
don't be afraid.

-Chad

On Tue, Jan 12, 2010 at 1:07 PM, Josh Flanagan <joshuaflana...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Batum  
View profile  
 More options Jan 12 2010, 6:30 pm
From: Paul Batum <paul.ba...@gmail.com>
Date: Wed, 13 Jan 2010 10:30:59 +1100
Local: Tues, Jan 12 2010 6:30 pm
Subject: Re: [fubumvc] Getting started with Git+FubuMVC on Windows

An approach I've found useful when working on Fluent NHibernate as a
contributor and NOT the official repository owner is to never commit to the
master branch. I update it as changes are made to the official repository,
but all my commits are done on a seperate "dev" branch (or other
fine-grained branches made off of the dev branch). When I have a batch of
changes I send James (the official repository owner) a pull request pointing
at my dev branch. The advantage of this approach is that it guarantees that
the history of my master exactly matches the history of the official
repository.

I also make extensive use of the rebase command, to make my commits a simple
linear sequence. So if my local dev branch has some changes and then James
updates the official repository, I'll pull his changes into my master. Then
I will rebase my dev branch onto the master, so that it looks like I made my
changes AFTER getting James's changes (when in reality they were made
beforehand). Now when I push my dev branch to my github repository and send
James a pull request, my changes go straight in, no need to merge.

Keep in mind that git is flexible enough that you can basically design your
own workflow. Don't take the approach I've outlined above as gospel. Its
just one possibility.

Hope this made sense. I'd be happy to elaborate further if necessary :)

Oh and one more thing. There are heaps of git resources about on the web.
This video is the best one I've found so far for understanding how git
works, and how to work with git:
http://www.gitcasts.com/posts/railsconf-git-talk

Paul Batum

http://airto.hosted.ats.ucla.edu/wiki/index.php/Setting_Up_and_Using_...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »