Takes a while, consumes space, consumes traffic.<br>
Also consumes traffic and some resources on the server so try to never repeat this step (i.e. make backup locally and restore it if something goes terribly wrong instead of cloning again).
2. **Go into directory**<br>
2. **Go into directory**
```bash
$ cd magia-assets
```
All of future steps are assuming that you are here, or that you're using `-C /path/to/your/magia-assets` and know what's goingon.
3. *Check if everything is fine*<br>
3. *Check if everything is fine*
```bash
$ git status
On branch master
@ -60,13 +60,13 @@ Your branch is up to date with 'origin/master'.
@ -141,7 +141,7 @@ Your branch is ahead of 'origin/master' by 1 commit.
nothing to commit, working tree clean
```
6. *Push synced master branch on remote*<br>
6. *Push synced master branch on remote*
```bash
$ git push
Enumerating objects: 415, done.
@ -163,7 +163,7 @@ To ssh://git-ssh.rayshift.io:45555/LiviaMedeiros/magia-assets.git
Not a necessary step but highly recommended: otherwise your fork will look confusing in the web interface.<br>
Ignore the link and suggestion to create PR here, it's not needed.
7. *Check if everything is fine*<br>
7. *Check if everything is fine*
```bash
$ git status
On branch master
@ -176,13 +176,16 @@ nothing to commit, working tree clean
## Branching
This is where you start your own work.
1. **Make a new branch from `master`.**<br>
1. **Make a new branch from `master`.**
```bash
$ git checkout -b tutorial-adjustments master
Switched to a new branch 'tutorial-adjustments'
```
2. *Check if everything is fine*<br>
Branch name doesn't have to be very meaningful, but it would be a good idea to make them distinct.<br>
The most simple way to achieve that is to include creation date, e.g. `adjustments-211205`.
2. *Check if everything is fine*
```bash
$ git branch
master
@ -198,7 +201,7 @@ nothing to commit, working tree clean
## Doing things
This particular part is repeatable. Do the things until you're satisfied with results. If everything went really wrong, ~~delete the new branch and~~ start the work phase again.
1. *Check if everything is fine*<br>
1. *Check if everything is fine*
```bash
$ git status
On branch tutorial-adjustments
@ -210,7 +213,7 @@ At this point, checking is actually important, especially if you already committ
This part is up to you.<br>
In this tutorial, we'll mess up with scenarios. Let's go into `magica/resource/download/asset/master/resource/scenario/json/adv/` and mess with M-Girl stories.
Nothing weird here: it's the latest new commit ([caf36505](https://git.rayshift.io/LiviaMedeiros/magia-assets/commit/caf365057396c0f336b8b61e670a789f04c5da40)), then the rest of new commits ([46e70151](https://git.rayshift.io/LiviaMedeiros/magia-assets/commit/46e70151a028aa747590ab73fd23119b324e8005)), then the latest upstream/master commit ([eb8631e7](https://git.rayshift.io/LiviaMedeiros/magia-assets/commit/eb8631e74681f0318d547235620c1ef61eff7411)), then everything else ([1f93676b](https://git.rayshift.io/LiviaMedeiros/magia-assets/commit/1f93676bba1ea23ca8bc21f2849300be9a482896) and so on). No unnecessary merge commits, no undoing commits, all clean.
3. *Check if the changes look as intended*<br>
3. *Check if the changes look as intended*
```bash
$ git diff master..tutorial-adjustments
[a lot of stuff]
```
Third check in a row: still not mandatory, but it's still a point of no return.
@ -359,6 +361,10 @@ Check everything again, make a new Pull Request, describe&comment it if needed.
The work phase ends here. To keep everything simple, just wait until the PR is accepted and merged into upstream/master, and then you can ~~delete the merged branch and~~ start the work phase again.
Note: usually, when your PR is merged "as is", it is totes safe to delete the merged branch, since it becomes a subset of upstream/master.<br>
However, if it's accepted via "squash and merge" method, I'd recommend to keep it as the most explicit and reliable way to access the individual commit history.<br>
One way to check the merge method is to go to [upstream/master commit history](https://git.rayshift.io/kamihama/magia-assets/commits/branch/master). If you see the exact same commits from your branch and maybe "Merge pull request" afterwards, it was a regular merge. If you see just one brand new commit which contains your whole PR, it was squash&merge.