git branch for new stuffs

git branch for new stuffs

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
MelKor
Posts: 38
Joined: 15 Oct 2010, 16:05

git branch for new stuffs

Post by MelKor »

I have searched and found few threads about git and branching in spring forum, but I don't know how can I make a new branch in dev line from a stable release.

I follow the indication in wiki page for getting and compile from source + git (http://springrts.com/wiki/Build_from_source) and i get a nice crash of the game, so I can assume based in the git model (from here http://springrts.com/phpbb/viewtopic.ph ... ch#p461448 ) that I'm getting the source from dev branch, and i can't find the way to get it from a stable release, so please help me to do that.

thanks in advance

MK
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: git branch for new stuffs

Post by hoijui »

have a look at these commands:

get a list of the tags (on the spring repo, we have only the versions as tags):

Code: Select all

git tag
get a list of the local and remote branches:

Code: Select all

git branch -a
switch to the source of the last release:

Code: Select all

git checkout 0.82.6.1
switch to the source of the last release:

Code: Select all

git checkout 0.82.6.1
at this point, you can make a new branch, based on the stable release, like described in the post you linked to:

Code: Select all

git branch 0.82.6.1-coolNewStuff
git checkout 0.82.6.1-coolNewStuff
for more git related questions, you may also ask in the dev channel on the lobby. there is nearly always someone around that is willing to help with that.
User avatar
MelKor
Posts: 38
Joined: 15 Oct 2010, 16:05

Re: git branch for new stuffs

Post by MelKor »

ty very very much, I'm going to do this right now, happy christmas !!..

MK
Post Reply

Return to “Engine”