find number of git pull/fetch from your repo - github

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

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.

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

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.

About GitHub "Fork" option

I am newbie in GitHub. I wonder why the option "Fork" is there when I have the option of cloning others' project and make my own repository on GitHub to extend it?
I guess the best answer I can think of is you might want to bring the fork back into the original branch, hence keeping it in the same repository.
I believe Forks were designed for playing with ideas or for suggesting changes to the owner of the repository, heres a link about it:
Github Forks
Yes, you are right, you can clone another repo and do any desired stuff.
But after that you need merge your updates into original repo (share your improvements with whole world) - and exactly for this purposes you need fork.
As far as I know, only this is the most flexible way manage your updates with original repo. And only this way can avoid undesired commit into original repo (repo owner able manage all propositions about any changes).

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.