Skip to content
fossil12 edited this page Nov 13, 2011 · 8 revisions

Git Workflow

Start

SSH-Key eintragen: http://github.com/guides/providing-your-ssh-key

Hauptrepot unter https://github.com/ecamp/ecamp3 forken.

Initiales herunterladen:

git clone git://github.com/USERNAME/ecamp3.git

Hauptrepo als Remote eintragen:

git remote add ecamp git://github.com/ecamp/ecamp3.git

Local

Pull vom Hauptrepo:

git pull -ff ecamp devel

Neuen Branch anlegen von BRANCH: (ev. nach "git flow")

git checkout BRANCH
git branch NEWBRANCHNAME
git checkout NEWBRANCHNAME

Alternative:

git checkout BRANCH
git checkout -b NEWBRANCHNAME

Neue Files hinzufügen:

git add FILENAME   # einzelne files
git add .          # alle files

Änderungen commiten:

git commit -am 'Some message'

Push

Neuen Branch auf mein github-repo pushen:

git push origin BRANCHNAME

Hängige Commits von publizierten Branches auf github pushen:

git push

Pull Request

  • Branch auf dem github-repo auswählen (rechts).
  • Pull Request oben rechts stellen.