Assuming your fork is https://github.com/me/foobar and original repository is https://github.com/someone/foobar
Visit https://github.com/me/foobar/compare/master...someone:master
If you see green text
Able to merge
then press Create pull requestOn the next page, scroll to the bottom of the page and click Merge pull request and Confirm merge.
Use this code snippet to generate link to sync your forked repository:
new Vue ({
el: "#app",
data: {
yourFork: 'https://github.com/me/foobar',
originalRepo: 'https://github.com/someone/foobar'
},
computed: {
syncLink: function () {
const yourFork = new URL(this.yourFork).pathname.split('/')
const originalRepo = new URL(this.originalRepo).pathname.split('/')
if (yourFork[1] && yourFork[2] && originalRepo[1]) {
return `https://github.com/${yourFork[1]}/${yourFork[2]}/compare/master...${originalRepo[1]}:master`
}
return 'Not enough data'
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
Your fork URL: <input size=50 v-model="yourFork" /> <br />
Original repository URL: <input v-model="originalRepo" size=50 /> <br />
Link to sync your fork: <a :href="syncLink">{{syncLink}}</a>
</div>