3

I have forked project A in GitLab and create B and made some modification. After a month now i would like to update B project by pulling changes done in A.

How can i do this? I have option to create Merge request but i could't able pull from A.

I know this could be very simple because if anyone like to contribute has eventually take pull before submitting merge request.

Please help. I found only this https://about.gitlab.com/2016/12/01/how-to-keep-your-fork-up-to-date-with-its-origin/

Basically i want to "Pull new updates from original GitLab repository into forked GitLab repository"

abbas.aniefa
  • 2,771
  • 19
  • 30
  • Possible duplicate of [How do I update a GitHub forked repository?](https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository) – rpadovani Feb 28 '18 at 15:02
  • Thanks. That answer really helped me to find much easier solution. – abbas.aniefa Mar 02 '18 at 04:35

1 Answers1

2

I found an option to update my forked project via Android Studio. It may help some android developers.

I have added new Remote URL via Git -> Add Remote and named as upstream. Now i have done a fetch (Git -> Fetch) and found both Project A and Project B branches.

Now i can easily update my Project B using Merge request and pushed to origin.

abbas.aniefa
  • 2,771
  • 19
  • 30