Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "ETrice/Development/Repository"
< ETrice | Development
Line 37: | Line 37: | ||
== Create a Patch via Git Gui== | == Create a Patch via Git Gui== | ||
− | * open the Git Gui | + | * open the Git Gui from your windows menu |
* open your "local Git Repositoriy" | * open your "local Git Repositoriy" | ||
* from the main menu select "Projektarchiv" => "Historie von >>master<< darstellen" | * from the main menu select "Projektarchiv" => "Historie von >>master<< darstellen" |
Revision as of 15:59, 15 February 2011
Contents
Git
Getting Started
- complete online version of the ProGIT book: http://progit.org/book/
- download git: http://git-scm.com/download
- e.g. for Windows: Git-1.7.3.1-preview20101002.exe
- Line Endings:
- Windows: check out Windows-style, commit Unix-style line endings
- Linux: Checkout as is, commit Unix-style line endings
- install EGit (update site): http://download.eclipse.org/egit/updates
GIT at Eclipse
- general: http://wiki.eclipse.org/Git
- for committers: http://wiki.eclipse.org/Git_for_Committers
- web access to git repositories: http://git.eclipse.org/
- install EGit in Eclipse and look up "Git for Eclipse Users" in the EGit Documentation
Clone eTrice Repository
Configuration
IMPORTANT: execute in shell or git shell:
- git config --global user.email <your email address>
- git config --global user.name "<your user name>"
pull/push (only for committers)
- ssh: git clone ssh://<dein commiter name>@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git
- https: git clone https://<dein commiter name>@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git
only pull
- http: git clone http://git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git
Use EGit
- create empty workspace
- open view "Git Repositories" or perspective "Git Repository Exploring"
- add repository path of your local git repository you cloned before
- contextmenu on repository: "Import Projects..."
- Next >
- Select All + Finish
Create a Patch via Git Gui
- open the Git Gui from your windows menu
- open your "local Git Repositoriy"
- from the main menu select "Projektarchiv" => "Historie von >>master<< darstellen"
- in the new window the latest master version must be selected (blue)
- right click on "lokale Änderungen"
- in the contextmenu select "Patch erstellen"