r/KerbalSpaceProgram • u/The1RGood • Mar 23 '13
Git Public Save exists! See text for info
HEADS UP: GIT PUBLIC SAVE NOW FORMATTED TO WORK WITH 0.21
This is going to be interesting to say the least...
So, for those of you that are already familiar with Git and how it works, here is the repository address
https://github.com/RGood/GitPublicSave.git
To get the repository, just clone it into the directory with your save files. If you want to push to the repo, please leave your github username in the comments and I'll make you a contributor.
For those of you without git experience, here's a very brief crash-course.
Go to http://github.com and they'll guide you through most of the process on how to learn. You'll need some sort of bash shell that can run git. Github gives you a free one to download, but if you have cygwin or something, that's fine too. Once you have an account on Github, let me know what the username is and I'll make it so you can save changes to the repository. Basic commands are:
git clone https://github.com/RGood/GitPublicSave.git
This creates loads the repository on your machine. You should do this in the location of your saves. You can get there with the cd command in the bash shell. Ex:
cd C:/the/address/of/your/KSP_win/saves
Then to get the repository:
git pull
This pulls all changes people have made to your computer. Do this before playing every time!
There are a set of 3 commands you need to save your changes so everyone can see them.
git add *
git commit -m "Insert commit message here"
git push
The first one stages the files to be committed. The second commits the files with the message you choose. Be sure you don't forget the -m "Message" part unless you know how to use vim. The last pushes the changes to the directory and will probably prompt you for your github username and password.
Here's one just for fun:
git checkout master~X
where x is the number of versions back you want to go. That's right, you can check out and play all of the older versions of the save!
Oh, and lastly: Just a reminder again to leave your github username in the comments so I can add you as a contributor to the repository.
Well, I think that's about it. I look forward to seeing you all "out there". Peace. :)
Edit1: Stock only please!
8
u/AvioNaught Korolev Kerman Mar 23 '13
So does this basically make a KSP subreddit save file?
2
u/[deleted] Mar 23 '13
Wouldnt any kind of automatic backup be easier? (or even dropbox could be used for this, I think)
2
u/flagbearer223 Mar 23 '13
I'm in! waveofbabies is my git username. Are we just using stock parts? Or can we agree upon parts/use different branches for different parts?
1
u/davendixon117 May 01 '13
Can someone just give me a link to a current download of the save on media fire i don't understand git at all much appreciated
1
u/Fartofdoom Aug 03 '13
does this work even if the game is ran through steam?
1
u/[deleted] Aug 06 '13
Username is camoceltic.
See you in orbit.
1
u/Psychedeliciousness Aug 11 '13
Awesome idea!
I just cloned the repo, and borrowed one of the ship templates, and stuck it in a 375k North launched orbit - I think it's meant to be some kind of rover, but it has docking ports a plenty so maybe the start of a 0 degree inclination space station doing polar research? Is that cool or is there some kind of plan?
Alternatively, if this one is deadly serious, is there also going to be a "let's just mess around" save for stuff like Jeb cannons and ridiculousness?
My git name is PhilF I think, although I don't know how to push stuff to the repo yet.
Found git rather confusing on Windows, but using the SourceTree GUI made it relatively painless.
1
u/mszegedy Master Kerbalnaut Aug 21 '13
How would a Windows user (not me) get a bash shell on their computer? Cygwin?
1
u/[deleted] Sep 05 '13
Is subassembly loader allowed?
1
u/nivlark Master Kerbalnaut Aug 07 '13
Hi there, git username is same as my reddit user.
Cheers :)
1
u/[deleted] Aug 11 '13
http://pastebin.com/DE72tqL7
That's a paste I made for a terminal script that should, in theory, automatically pull the latest version or push the local version without much input. Was hoping to go with a GUI, but I need to learn more before I can do that. As it is, pulling is a 2-keystroke task, and pushing only needs your login credentials to Github in addition to the 2 keystrokes, so I feel I did good. Needs to be in the KSP folder's "saves" folder to work at the moment.
If I can get some input from a Mac user, I should be able to make it work for all 3 Operating systems, no matter the location of the script. Then again, I don't know the best way to do this on a Windows OS for locations. Nix systems should work fine with "~./steam/steam/SteamApps/common/Kerbal\ Space\ Program", assuming Mac uses the same directories for Steam as Linux.
0
u/[deleted] Mar 30 '13
[deleted] — view deleted comment
0
u/[deleted] Jul 08 '13
[deleted] — view deleted comment
1
u/[deleted] Mar 24 '13
[removed] — view removed comment