Monkey2 Git Guide
November 17, 2016 at 8:56 pm #5169
Monkey2 Git Guide
These are some useful commands I used in order to compile Monkey2 from source. It will be a good idea to post here how things are done, so others can learn too.
First thing is that you can acquire a GIT client and install it, setup your local username and email and then be able begin working with it. You can find lots of tutorials on how to do this on Youtube, it’s very simple and easy so I won’t cover it in details.
I will assume that you have your GIT client ready to roll and I will jump straight into the examples.
How to download the Monkey2 repository?
This will create a local clone of Monkey2 in your hard disk that will allow you compile and use it.1git clone https://github.com/blitz-research/monkey2.git
How to update Monkey2 to the latest version?
While you are in your monkey2 directory (e.g. D:\Programming\monkey2) you can write this command to see if there is any new changes in the origin repository [git status origin] in order to download these changes in to your local copy you can type this.1git pull
An alternative way to update your repository is like this. However you can use this only if you are specially interested or there is a specific reason to do so.1git pull --rebase
How to download any submodules?
Currently at this point only Ted2Go exists as a subproject. If you want to acquire it you can type this.1git submodule update --init --recursive
How to update any submodules?1git submodule foreach git checkout master
In the same manner, if you are interested to use the alternative way. From what I have learnt the only reason to use this if there is some weird collision and GIT asks you to “fast forward” your commit.1git submodule foreach git pull --rebase origin master
That was the end of the tutorial, I hope you find it useful. If you have any other info or other ideas or suggestions, let me know so I see how I can help.November 19, 2016 at 6:00 am #5230
I use SourceTree for git. I prefer gui instead of command line. 🙂
May post short ‘howto’ if someone is interested in.November 19, 2016 at 7:45 pm #5252
It will be a good idea, won’t hurt to post it. Can you make a huge image (i.e. 1500×1500) that explains it?
Generally I use “gihub for windows” but I consider switching to sourcetree, lots of people like this one.November 20, 2016 at 9:57 pm #5282November 23, 2016 at 10:01 am #5374
There is a short article “How to use SourceTree app for managing git repository”.
Install & Account
Install app from here: https://www.sourcetreeapp.com
Enter your git account info to get access to github (there is a prompt for first start).
Start app and press Clone/Add (see st-1.png).
In clone dialog (see st-2.png):
- paste monkey2 repository url,
- select folder to copy into (if folder exists it must be empty),
- enter name for repo (it’s bookmark for soursetree),
- and press Clone button.
- wait loading
After loading you will stay on default branch – master.
To use develop or any other branch, you need to checkout it.
- Look at Remotes list below master branch.
- Right-click on remotes::origin::develop and choose “Checkout origin/develop…” and press Ok.
- Ok, now you stay on develop branch (bold font).
To change local branch simply double-click on one of them.
To grab new stuff – just press Pull button on main toolbar.
Pull and run rebuildall script if needed.
Any questions? 🙂
Attachments:November 27, 2016 at 12:47 pm #5457
Nice one, thanks.
You must be logged in to reply to this topic.