Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

GitHub Creating pull requests

Status
Not open for further replies.

abu baniaz

Moderator
Joined
Sep 16, 2010
Messages
24,112
Reaction score
178
Points
63
Location
East London
A guide I did for someone else on another project. Please feel free to submit corrections or enhancements.

This is the guide for the Web aspect of it. Most people who contribute use a Git client like Sourcetree.
 

Attachments

To help keep your fork (copy of project) synchronised.....

Point 1A
If you have already made changes to dev and master branches in your fork and do not need the changes, delete the project from your GitHub account and start agian.


Point 1B
If you have already made changes to dev and master branches in your fork want to keep the changes,

On Sourcetree, rename the branches on your PC that you have already modified. Perhaps "dev/master_with_my_changes_ todays_date"

If you want to keep the changes because you have other changes, push the renamed master and dev branches to your GitHub account
Using Sourcetree, push/send the newly renamed branches to GitHub

On GitHub website delete the existing master/dev branches. (We are doing this because they have changes)

On sourcetree, click on upstream, origin, double click master/dev branches. You are now forking the the official (i.e without your changes) Vix master/dev branches back to your fork.
Push these branches to your GitHub account.

Create a new branch, merge the branches you had renamed earlier "dev/master_with_my_changes_ todays_date" into this new branch


Point 2
If you build your own images with changes that you make, do not build from the dev branch. Make a new branch from "dev", example "my_dev" and build from this new branch.

Sourcetree guide to follow
 
Last edited:
Sourcetree guide attached

Commandline guide
Code:
https://help.github.com/en/articles/syncing-a-fork

If you want the web based method, try this
Code:
https://github.com/KirstieJane/STEMMRoleModels/wiki/Syncing-your-fork-to-the-original-repository-via-the-browser

I could never do it from the browser. Hopefully someone who knows can post in another thread and I will add to this guide
 

Attachments

Last edited:
I added this to my repositories

Code:
https://github.com/wei/pull#readme

Keeps master branch in forks in sync with upstream repositories
 
Last edited:
In order to list changes in a csv file, adapted from
Code:
https://stackoverflow.com/questions/10418056/how-do-i-generate-a-git-commit-log-for-the-last-month-and-export-it-as-csv

git log --before="2019-09-30" --pretty=format:'"%h","%an","%ae","%aD","%s",' --shortstat --no-merges | paste - - - > before_21090930_log.csv


git log --after="2017-12-31" --pretty=format:'"%h","%an","%ae","%aD","%s",' --shortstat --no-merges | paste - - - > after_21071231_log.csv
 
Last edited:
Status
Not open for further replies.

OpenViX Feeds Status

Back
Top