X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Git.textile;h=b30323fc79597743c79b48461882c542eddcd03a;hb=f39e6a57453f827bd0cfb9c566a88acc784a7556;hp=7abd1f950361e79c6e8465922db8a2c2223daf18;hpb=5f95d0bd8c0f94247e0ccba9bb7aea780b4813b2;p=xonotic%2Fxonotic.wiki.git diff --git a/Git.textile b/Git.textile index 7abd1f9..b30323f 100644 --- a/Git.textile +++ b/Git.textile @@ -16,7 +16,7 @@ The current structure looks as follows: |/|git://git.xonotic.org/xonotic/xonotic.git| |/bocc|git://git.xonotic.org/xonotic/bocc.git| |/darkplaces|git://git.xonotic.org/xonotic/darkplaces.git| -|/mediasource|git://git.xonotic/xonotic/mediasource.git| +|/mediasource|git://git.xonotic.org/xonotic/mediasource.git| |/netradiant-xonoticpack|git://git.xonotic.org/xonotic/netradiant-xonoticpack.git| |/netradiant|git://git.xonotic.org/xonotic/netradiant.git| |/data/xonotic-data.pk3dir|git://git.xonotic.org/xonotic/xonotic-data.pk3dir.git| @@ -35,9 +35,9 @@ By convention, branches are usually called /. Before creating a branch, you first have to choose a base of your branch. Then you can create your branch: Let's assume your name is me, your branch will be called feature1 and your base will be master. There are several ways of creating a branch: -You can simply create it by issuing: -
git branch me/feature1 master
-This will create the branch locally, nothing else. It will not checkout the branch. You can do this now: +You can simply create it by doing this from the xonotic directory and selecting where to branch: +
./all branch me/feature1
+This will create the branch locally and nothing else. It will not checkout the branch. You can do this now with:
git checkout me/feature1
Another possibility would be to checkout your base, and then use git checkout -b me/feature1. This is usually nice if you already are on your base branch because it is a single command. @@ -91,7 +91,7 @@ h2. Merging and rebasing In git you have two ways of combining two branches: You can either merge them, which does exactly what its name suggests: it merges the commits together. Or you can rebase the branch. -Rebasing means that all your changes will be put at the end. This works by first collecting and removing all your changes, then replacing your branch with the base branch, then applying all your changes to it. Whenever something failes to apply you'll be asked to fix it, and then issue a git rebase --continue +Rebasing means that all your changes will be put at the end. This works by first collecting and removing all your changes, then replacing your branch with the base branch, then applying all your changes to it. Whenever something fails to apply you'll be asked to fix it, and then issue a git rebase --continue * Merging master into me/feature1:
git checkout me/feature1
 git merge master