How can my GitHub repo have 1 visitor but 12 clones? - github

This has baffled me for quite a long time.
I notice that anyone with a link can download the repository. But the question is, where do they get the link from? I cannot seem to find a page on GitHub listing all the newly published repo.
Everytime I publish a new repo, there would be 3~6 mysterious clones follow shortly after, even when the number of visitor remains at most 2 persons.
While I welcome people to find out what my code can do, it somehow gives a pressure on me not to publish unfinalized code, and also not to amend the content of my repo after publishing it because they might already have cloned it before the changes are made.
Alright, it has 2 visitors (including me) to be exact:

You have no way to see who has checked out your repository using standard git commands such as git clone, but you can see who has forked your repository on GitHub in the Traffic section under Insights.
Now my first thought would be that those people cloned your repository outside of Github as you don't need to be a Github user to clone repository (so Github couldn't keep track of them and you wouldn't be able to see them).
Good luck, hope this helps.

Related

Show commits and description but hide code in repository [Github]

I've almost done my first big project in React+Typescript+Redux and started it on Firebase with users and some database conneted with logged users.
It was supposed to be my project to portfolio before looking for my first dev job, but it start to be very complex.
Now I have idea to use it in the future to make commercial app.
So the problem is I don't want to publish my code on github, but at the same time I want to publish all my commits and repository description on Github for recrutiers (and all my tasks from trello table). Is it possible to publish only commits and description from github repository?
No, this is not possible. If your repository is public, anyone can clone the entire repository. The only way to make your code inaccessible is to make the repository private, which means nobody can see it without having permssion.

Github contributions graph empty after job change

I changed jobs and my beautiful green Github contributions graph is now almost completely empty. I worked on the same project every day for one year and now all my hard work looks like it's gone!
I realise this is because I was a collaborator on a private repo at my old company. When I started my new job, the old company removed me as a collaborator on their project.
I have looked through the docs on Github but it looks like that is how the graph works. Is there any way to get it back? How can I stop the same thing happening at my next job?
I have tried a lot but unable to find a fruitful solution.
From their website We recommend starring any repositories you contribute to. That way, your commits to those repositories will remain in your contributions graph even if you leave the organization that owns the repository or delete your fork of the repository.
I have tested this approach by creating another github account and starring the repository which doesn't work as they said.
I also have gone through this, but this doesn't help to solve the issue.
I don't think there is any way to show contribution if owner removes collaborator.

git - update a fork hosted on an organization

I have fork-ed a project on an organisation I'm part of. I'm trying to get the fork updated as there were commits (see below) just by using the web interface.
I've searched the net but I did not find anything relevant.
How can I do that?
Thanks
As i've never played with someone's branch before, my question sounds stupid but bear in mind : This was my first time.
Please find the way to update the branch you've forked , when that person who own the branch, committed changes and you want your fork to be the same as his branch. All done by Github's web interface
Go to the pull request tab
Click on the button New pull request
Create a pull request
Commit (as you are asking for his changes willingly, you are the one committing :))

'Symlink' a github repository

Is it possible to 'symlink' to a github repository? That is, have a github repository at github.com/user1/symlink_to_project seamlessly point to github.com/user2/another_project? The use case is an organization that wants to link to an existing project that already has numerous issues, stars, etc. I'm not sure what the proper term for this would be in github parlance, although I've searched for mirror, link, etc.
It's not possible to "symlink" a repository, but likely what you want to do is transfer the repository to an Organization account.
More info here: https://help.github.com/articles/transferring-a-repository/
What's transferred with a repository?
When you transfer a repository, its issues, wiki, stars, and watchers are also transferred.
that's basically what git submodules are: https://git-scm.com/book/en/v2/Git-Tools-Submodules
you can do it, but if you are going to use submodules you are usually going to have a bad time in the long run.

find number of git pull/fetch from your repo

Is there a way to find how many times people have fetched/pulled from your git repository? I see a "Pull Requests" tab. Is that it?
Imagine that you fork a project and correct an error in that project. You can send a pull request to the owner of that project so he knows you made changes that he probably is interested on.
You can see how many people watch/forked your repository but as far as I know there's no way you can see how many people fetched from your git repository