I lost my changes on github without pull request - github

I worked on github
I changed some code
I did a ‘’’git push’’’ to master
I forgot to ask a pull request.
Then, I did a ‘’’git pull —rebase origin master’’’
and so on my branch now I don’t have anymore all my previous code but I could see my changes on github.com
I tried to push again
then I couldn’t see anymore my changes on the GitHub homepage.
The problem is that I need to find my previous code.
Can anyone help please ?

Related

How to remove [WIP] work in progress tag from pull request on github?

I have made a pull request yesterday with the [WIP] tag and now my task is finished, I want the review so how will I remove that WIP tag from the Pull request to make that review ready from the organization repository on GitHub?
You need to click edit on the right of the PR when you open it, and then you can change the name, else the reviewer when merging into the main branch can change the name, and i suggest to use the git naming convention, to have a clean and organized history, using also gitmojis

Github Pages not showing up

https://github.com/jchu4483/auth0
I'm following Github's tutorial to host a Github Page. I creating the repo and set the Github Page to track my main branch and published the Page.
Github says my site should be published at http://test-blog-on-qa.com/auth0/ but the site doesn't load. As a side note: Why would Github choose that weird domain name(test-blog-on-qa)?
I've chosen a theme(Jekyll), pushed an empty commit to rebuild but nothing works. This should be very simple so I'm confused as to what could be wrong?
You are using the Github Custom Domain for your site chu4483.github.io.
Have a look at: https://github.com/jchu4483/jchu4483.github.io/blob/master/CNAME
That's why test-blog-on-qa.com is used as the domain name automatically.

How can I link an issue when am I filling out a pull request form on GitHub?

There is a manual https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue
and I cannot complete the 4th step because I cannot find "Linked issues".
just write #issue number in pull request description to link the isuue
you can also write fixes #issue number closes #issue number to automatically close an issue when your pull request is accepted and merged
if you are the owner of the repository you can link an issue by clicking the setting icon in the Linked Issues on the right sidebar but if you are an outside contributor then you cant use it to change or link any issue you can only see which issues are linked

Pull request at GitHub results in Compare changes page - how to proceed?

I wanted to fix some typos in a Microsoft documentation repo. I clicked on its New pull request button. That resulted in the following page being displayed:
As you can see, the green Create pull request button is disabled. How do I proceed from here? In other repos (such as for Amazon documentation), the process works differently, and I am able to directly create a pull request.
The common scenario of making such PRs looks like the following:
fork the repository http://prntscr.com/m7yhq0
make a new branch there with name like fix/several-typos http://prntscr.com/m7ytis
change a file and commit your changes to the branch (there should not be any difficulties)
go to the original repository, click New pull request and choose compare across forks http://prntscr.com/m7yih0
select necessary branches for PR and then the button Create pull request will be enabled.
Review your changes displayed below and click Create pull request
Hope that will help.

How to view detailed activities of a repo on GitHub?

I was able to see all details of activities on GitHub, such as who made a pull request, who put a comment on the pull request, etc. But for some reason, once I navigated out of that page a few days ago, I was never able to get back to such a page and find it again on GitHub.
(The "pulse" doesn't have such info as it is a higher level summary.)
How can the detailed activities page be shown on GitHub?
P.S. with the greatest effort to find it, it turns out the page might simply be https://github.com but it lists all repos that I was involved in previously, instead of just the repo I want to look at. So I wonder if there is a way to see what https://github.com is listing except it is for a particular repo only.
That pretty much sounds like the "Notifications" page. When logged in, click on the "Bell" symbol top right; you'll be taken to
https://github.com/notifications