How to work with git on the command line

From OpenPetra Wiki
Revision as of 10:17, 23 December 2014 by Pokorra (talk | contribs) (Created page with "== This page is not finished yet == Due to the change from Bazaar/Launchpad to Github, this page needs to be rewritten Have a look at these pages: * How to work with bazaar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is not finished yet

Due to the change from Bazaar/Launchpad to Github, this page needs to be rewritten

Have a look at these pages:

Configure git

git config --global user.name "FIRSTNAME LASTNAME"
git config --global user.email "EMAIL@EXAMPLE.ORG"
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'

Clone the repository

Then on the commandline, in Git Bash, you can run:

git clone https://github.com/YOUR-USERNAME/openpetra

Commit your changes

git commit -a

Push your changes to Github

This will publish your branch at Github, in your fork of OpenPetra:

git push origin

Create a pull request at Github

See https://help.github.com/articles/using-pull-requests/