Here we will see how create a merge request (MR) when we do not have write access to one repository.
First you need to fork the repository in your home Salsa directory:
- Go to the project page,
- On top at right, click on "Fork",
- Select your personal namespace,
- (Forking in progress...).
Now you can clone this repository in your computer:
git clone <path your project>, example: {{{git clone git@salsa.debian.org:zordhak/webwml.git
Befor create any updates, it's recommended to work in another branch. With this method, you can work in multiple updates and update easily the merge-requests. To do that:
Go to your local repository, example cd ~/webwml ,
Create a new branch, example git branch update-international-arabic ,
Switch to this branch, example git checkout update-international-arabic ,
Do your updates, example this 301 url: sed -i 's#http://www.arabeyes.org/#https://www.arabeyes.org/#' english/international/Arabic.wml
Now check your update(s) with git status, git diff ...
Create the commit and push it on your Salsa repository:
git commit -am "international/Arabic - Update 301 URL"
git push origin update-international-arabic
That will create the remote branch update-international-arabic on your own repository.
Now you can go to your fork (on Salsa), and create the related merge-request.
If you commit and push any other content on this remote branch, the merge-request will automatically updated.