Secure Developments

my git remote

So occasionally I like to fork a project on GitHub well the proper way to do it is to use GitHub’s fork button which then clone’s the repo into your account. this is great! I can than clone that locally develop it an push to it. Usually I do this push with git push origin. I can then ask the owner of the original repo that I forked from to ‘pull’ my changes in. Wait did I just say original? why am I calling my repo on github origin? it’s probably not the origin repo… it’s not the primary project repo… so I decided I needed a new convention. I now do git remote add my uri://… for my repo’s on github and git remote add origin uri:// for the projects authoritative repo. This also helps when I need to update my repo from the origin and then push them to my public forks.


Share

comments powered by Disqus