One of the hobbies I've taken on later in life is developing video games. This isn't actually all that new - over 30 years ago I developed several small games for the Commodore 64 in assembler and BASIC. Of the games I've developed so far the one I've most actively been working on is Fasteroids. Fasteroids is my re-spin of the classic Atari game Asteroids. Over a year ago I put several months of concentrated effort into developing Fasteroids. I took a long hiatus from development, but I started working on Fasteroids again recently.
One thing I realized looking at Fasteroids a year later is that I was going to make some major changes, but I also wanted to keep a copy of the code as it is now. The best way to do that seemed to be to put the code under revision control. GameMaker Studio 2, the engine I'm using, has some revision control features built-in to the menu that seem to depend on git. But the user interface doesn't appear to be used by the majority of developers who instead seem to prefer the git command-line interface.
Step number one, download git. Step number two, download the vim editor. Step number three, open a bitbucket account (note: 10 minutes later I still don't have a verification email - did their server eat it? I double checked that I typed my email address correctly).
Step number four create a new repository. Step number five set up git bash:
git config --global user.name "chaslinux"
git config --global user.email "chaslinux@gmail.com"
Several other steps were required between the Gamemaker UI and git. With a project opened I needed to run:
git remote add origin <fasteroids git repo location>
I was following a tutorial which suggested:
git push -w origin master
This didn't work because there's no -w switch in git. Trying it without the -w switch resulted in an error, so I looked through the git options and found the -f force switch to force this to be the master. (The error suggested I couldn't push it as origin because files existed on the server already).
One thing I realized looking at Fasteroids a year later is that I was going to make some major changes, but I also wanted to keep a copy of the code as it is now. The best way to do that seemed to be to put the code under revision control. GameMaker Studio 2, the engine I'm using, has some revision control features built-in to the menu that seem to depend on git. But the user interface doesn't appear to be used by the majority of developers who instead seem to prefer the git command-line interface.
Step number one, download git. Step number two, download the vim editor. Step number three, open a bitbucket account (note: 10 minutes later I still don't have a verification email - did their server eat it? I double checked that I typed my email address correctly).
Step number four create a new repository. Step number five set up git bash:
git config --global user.name "chaslinux"
git config --global user.email "chaslinux@gmail.com"
Several other steps were required between the Gamemaker UI and git. With a project opened I needed to run:
git remote add origin <fasteroids git repo location>
I was following a tutorial which suggested:
git push -w origin master
This didn't work because there's no -w switch in git. Trying it without the -w switch resulted in an error, so I looked through the git options and found the -f force switch to force this to be the master. (The error suggested I couldn't push it as origin because files existed on the server already).
Comments
Post a Comment