Juned Memon
Juned Memon Good for nothing

Keeping a Git Fork Upto date

Keeping a Git Fork Upto date

1. Clone your fork:

1
2
3
4
5
6
7
8
```
git clone git@github.com:junaid18183/helm.git --branch master --single-branch
``` ### 2. Add remote from original repository in your forked repository: 
```
cd helm
git remote add upstream git@github.com:helm/helm.git
git fetch upstream
```

3. Updating your fork from original repo to keep up with their changes:

1
    git pull upstream master

4. Push your Changes to your Repo Origin

1
2
3
git status
git push origin master
git status

5. Add your changes and commit

1
2
3
git commit -am "Fixes repo parsing"
[master 5d9bac4d] Fixes repo parsing
 1 file changed, 14 insertions(+), 1 deletion(-)

6. Sign off your messages

Few Opensource Repo’s like Helm require you to Signoff your messages for enforcing the DCO, so sign the commit, And push the chanegs again to master

1
2
git commit --amend --signoff
git push --force-with-lease origin master

8. Set the auto sign off to true in your git config

1
git config --global format.signoff true

Once you add this you can

7. Sent a PR to the original repository

Send a PR to the original repository.

comments powered by Disqus