Hello <@U046WB40V44>, you should be forking the os...
# general
s
Hello @Subash Rajaa, you should be forking the osquery repository, commit your work in a separate branch (not master) on your own repository, and then you can open a PR in the upstream repository, which points to your branch.
s
Thank you so much. I have created a local branch called fflush-consolebuufer-ungraceful-exit
I need to be able to push it in order to create a PR
s
Yes, but you shouldn’t be pushing it on the upstream repository. You have to create a fork of the osquery repository first, you can do that from the github website
On the top right of the osquery Github page you should see the Fork button, click it and follow the steps to create a fork. Now that you have the fork, you have to add it as a remote in the local repository.
s
ok then push the commit to the forlk ?
s
yep, and then back on the Github UI on the upstream osquery page, you should see a banner saying that you can open a PR with the branch you pushed to
s
so do we need to clone the fork
s
otherwise you can go in the Pull Requests page and use the
New pull request
button, and then click the link that says
compare across forks
. Then you select the branch
s
and create a commit against it
s
For right now you don’t need to; if you’ve your code ready, you can add your repo with
git remote add myosquery git@github.com:srajaa/osquery
and then when pushing you can do
git push myosquery
But after that, I normally work on my fork, so clone it, so that the remote is
origin
, and then I add the upstream repository as a remote named
upstream
(so it would be the opposite of what you have now)
s
C:\Source\osquery>git push myosquery1 kex_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I am not able to get it to work...
s
1. Do you have an ssh key configured in your Github profile, that you’re now using to push to you repo? 2. If so, can you please execute
git remote -v
?
s
1. yes I have a personal access token
2. C:\Source\osquery>git remote -v myosquery1 git@g<mytoken@github.com>:srajaa/osquery (fetch) myosquery1 git@<mytoken@github.com>:srajaa/osquery (push)
s
I see, if you’re using a PAT, you need to use the https protocol. I think you should be changing the URL to
git remote set-url myosquery1 <https://srajaa>:<token>@github.com/srajaa/osquery
s
done...thank you so much