Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2019-11-27 09:45:10
Size: 1656
Editor: NicoleThomas
Comment:
Revision 9 as of 2024-06-24 14:26:28
Size: 2018
Editor: NicoleThomas
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
   * issue #xxx    * '''issue #xxx'''
Line 15: Line 15:
 * Create corresponding branch on DKRZ server "issue_xxx"  * Create corresponding branch '''issue_xxx''' on DKRZ server
Line 36: Line 36:
   * first line with issue number
     xxx: ...
    (xxx: clams-submodul: ... -> all "clams" commits can be searched on DKRZ server!)
   * '''first line with issue number'''
     '''xxx''': ...
    ('''xxx: clams-submodul''': ... -> all "clams" commits can be searched on DKRZ server!)
Line 40: Line 40:
   * Additional explanatory text with as much details as desired from the third line onwards    * additional explanatory text with as much details as desired from the third line onwards

 * Before pushing: <<BR>><<BR>>
 List all files to be pushed:
 {{{
git diff --stat --cached origin/devel
git diff --stat --cached origin/issue_xxx
}}}
 View all differences in all files to be pushed:
 {{{
git diff --cached origin/devel
git diff --cached origin/issue_xxx
}}}
Line 49: Line 61:
git checkout devel
Line 50: Line 63:
git checkout issue_xxx
Line 63: Line 77:
see ''CONTRIBUTING.md'' in messy main directory see '''CONTRIBUTING.md''' in messy main directory

MESSy/CLaMS: Commit Changes to DKRZ server

  • Before the very first commit configure the author name and email address to be used with your commits (saved in ~/.gitconfig):

    git config --global user.name "firstname lastname"
    git config --global user.email name@fz-juelich.de
  • Create issue on DKRZ server
    • issue #xxx

    • Description of issue: "CLaMS:..."
  • Create corresponding branch issue_xxx on DKRZ server

  • Update local repository
    git pull
  • Switch to new branch
    git checkout issue_xxx

    => already modified files are applied to the new branch

  • Check your changes and commit:
    git status
    git add [...]
    git commit
    Commit Message:
    • first line with issue number

      • xxx: ...

      • (xxx: clams-submodul: ... -> all "clams" commits can be searched on DKRZ server!)

    • empty second line
    • additional explanatory text with as much details as desired from the third line onwards
  • Before pushing:

    List all files to be pushed:

    git diff --stat --cached origin/devel
    git diff --stat --cached origin/issue_xxx
    View all differences in all files to be pushed:
    git diff --cached origin/devel
    git diff --cached origin/issue_xxx
  • Push your changes to the new branch on DKRZ server
    git push
  • Update your branch regularly with current devel branch
    git checkout devel
    git pull
    git checkout issue_xxx
    git merge devel
  • Create merge request on DKRZ server
    • click on "Merge Requests"
    • select "New Merge Request"
    • select source branch (issue_XYZ) and destination branch (devel)
    • click on "Compare branches and continue"
    • enter title (maybe remove "WIP:"), description (name co-referees by @-mentions) and assignee (Patrick Joeckel),
      • maybe select "delete source branch when merge request is accepted" and sent it

see CONTRIBUTING.md in messy main directory

messy/Commit (last edited 2025-01-09 11:48:48 by NicoleThomas)