English Български

How to Apply Git Merge Request from Gitorious

Changes will be pulled into a local branch for review. If the changes are approved they will be merged back to the master and pushed into the remote repository.

  1. Check out a new branch for integration
    1. git checkout -b merge-requests/1
  2. Fetch the merge request into this branch
    1. git pull \
    2.   git://gitorious.org/project/project.git \
    3.   refs/merge-requests/1
  3. Show the commits, assess they are okay
    1. git log --pretty=oneline --abbrev-commit master..merge-requests/1
  4. Apply the changes to your branch
    1. git checkout master
    2. git merge merge-requests/1
    3. git push origin master

Please replace the paths to you project before executing the commands.

Troubleshooting

  • fatal: ‘origin’ does not appear to be a git repository

Origin is default naming convention for referring to a remote Git repository. As a solution you can add another origin and push the changes using it:

  1. git remote add origin2 git@gitorious.org:project/project.git
  2. $ git push origin2 master

  • Permission denied (publickey).

Regenerate your SSH key and try again.

See Also

Git Installation [developer.qt.nokia.com]
Unable to Git-push master to Github [stackoverflow.com]

Categories: