-
Notifications
You must be signed in to change notification settings - Fork 66
Git
If you want to try Git, you should start by downloading msysgit. Github has a tutorial for these first steps. You don't have to do the last step of generating an SSH key if you use the repository's https address.
After you've installed msysgit...
- Open Git GUI (found in the programs menu)
- Select Clone Existing Repository
- Enter
https://github.com/gegerlan/aog.git
into the Source Location field. - Press OK
After the game has been downloaded...
- Select the menu item Edit > Options...
- Provide your Github username in User Name, and the email address you provided when you signed up to Github in the Email Address field.
- Press Save.
When you have content you wish to commit...
- Open Git GUI
- Select the Adventures of Garnet folder from the list, or select the folder from Open Existing Repository.
- Hit rescan. If no files are listed as changed, run Export.bat found in the Utility folder.
- Select the files you wish to commit from the Unstaged Changes panel (hold down shift to select a range, CTRL for selecting multiple individual files).
- Select menu item Commit > Stage To Commit (CTRL+T) to move the files into the Stage Changes (Will Commit) panel.
- If you accidentally added a file you don't want to commit, select it in the Stage Changes (Will Commit) panel, and select Commit > Unstage From Commit (CTRL+U).
- Write the commit message, i.e. detail what you've done. The first row is the "header", and should be a short description of the change. Second line should be empty. Third line and onward are for detailed descriptions and comments you wish to add.
- Press Commit to save the changes locally.
- Press Push to upload the commits you have locally.
If you get the error message ´403, can't access...´ you're trying to push to a repository you don't have access to. Contact the owner of the repository and ask them to give you write access, or change the [[git remote]] so you push to your own.
To update the local content you do a pull. This is done in the Git GUI by...
- Select menu item Remote > Fetch from > origin
- Select menu item Merge > Local Merge...
- Select Tracking Branch and origin/master. If the branch can't be found, you're already up-to-date.
- Press Merge.
If your working branch differs from the upstream one (from having a different history), you can solve this by following the suggestions here.
If you're not afraid to use Git Bash (command line) there are a number of tutorials available on the Github's help section. There's also a number of front-ends available, like tortoiseGit and smartGit, but they still require you to install msysgit first.