Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
  • Post
  • Reply
the talent deficit
Dec 20, 2003

a cultural boneyard

I've got a project (under git) I'd like to release, but without it's entire history. I basically want to release just the last few commits publically. What's the best way to do this while still maintaining the history privately?

Adbot
ADBOT LOVES YOU

the talent deficit
Dec 20, 2003

a cultural boneyard

that was just the git server daemon, the thing that listens for remote git requests. github abandoned it, but andrew thompson wrote a blog series on optimizing it and got hired by basho as a result.

the talent deficit
Dec 20, 2003

a cultural boneyard

Optimus Prime Ribs posted:

When I do git add foo.py does that just mean "add this to the list of items that will be commited" and nothing else?
That's what it seems to mean (and that's what the help files seem to be saying), but I just want to be sure.

There's three 'sections' active when using git, your working set, the stage and the repository. The working set is the current set of files, just as they appear on disk. The repository is a series of snapshots you can check out (potentially overwriting) to the working set. The stage is a set of changes that can be written to a new snapshot in the repository. Adding a file writes the state of the file at the time add is run to the stage. This means if you add foo to the stage, then edit foo, none of those edits will make it into the commit unless you readd the file.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply