git-clone

Explain clones info in Github's Traffic tab

霸气de小男生 提交于 2019-12-10 00:48:16
问题 In a recent question I made, one of the answers pointed to another answer in another question where a way to explore the forks and clones of a public Github repo was shared. I went ahead and did that with my own public repo and came up with this information in the Git clones section under the Traffic tab in the Graphs section: I'm not really sure I understand what this information means. Are there 6 clones of the repo in total with 4 of them made on the 09/08? Did only 3 unique cloners cloned

How to run two MATLAB instances simultaneously with different pathdef's?

岁酱吖の 提交于 2019-12-09 13:44:09
问题 I'm developing my own brain imaging toolbox that runs under MATLAB & SPM8, and at the same time I have a git clone 'd version of my own toolbox code directory (local git repository) for running analyses, this setup is created according to Kevin Reid's answer on How to work simultaneously on several different versions of files with git?, which solved a part of the problem (how to have different versions of same .m file accessible at the same time, and still synchronizable by using git fetch or

Git cloning a repository that is already a clone

删除回忆录丶 提交于 2019-12-09 05:28:00
问题 Are there any ill side-effects to do a git clone of a repository that is already clone of another remote repository? 回答1: There's no side effects but you should understand exactly what happens when you clone a repository. Some theory The "problem" is that when you clone a repository "the normal way"—that is, without any funky knobs adjusted when calling git clone —you do not end up with a repository which is the same as the source one. It indeed contains exactly the same history but it has

Git pull fatal: Out of memory, malloc failed

一曲冷凌霜 提交于 2019-12-09 04:20:42
问题 I've a repo on https://bitbucket.org/ Few days ago by a mistake big number of image files were pushed in the repo. then files were deleted via another push. after that repo worked ok, but today when i try to pull from the repo: $ git pull Password for 'https://repo@bitbucket.org': warning: no common commits remote: Counting objects: 4635, done. remote: Compressing objects: 100% (1710/1710), done. fatal: Out of memory, malloc failed (tried to allocate 4266852665 bytes) fatal: index-pack failed

Why do I see a deleted remote branch?

会有一股神秘感。 提交于 2019-12-08 15:04:24
问题 I have a remote repository and 2 clones. I create a branch in one of the clones e.g. test . I do some work and 2 commits. I merge to master branch and push -u the branch. I do a git pull in the other clone. I see both master and test . In the first clone project I do: git origin :test to delete test branch on remote repository. test is deleted on remote repos. I do git branch -D test and the test branch is deleted locally as well. If I do git branch -a I get: *master remotes/origin/master Now

Can't find my git repository url

寵の児 提交于 2019-12-08 12:00:52
问题 So I think I am confused - but for some reason I cannot push or pull to my git repository. I have a linux web server and have a web folder in /var/www/bcs.net.nz/ I did a git init bcs.git in this folder (I have also tried .git ) and then I thought I could do git clone git@bcs.net.nz:bcs.git to clone it on the local machine or git push on the remote machine. I have also added a git remote add origin git@bcs.net.nz:bcs.git on the remote machine. After all of that I still cannot push and pull

Mingw+msys2 : Failed to connect to bitbucket.org : Network is unreachable

一笑奈何 提交于 2019-12-08 07:55:30
I want to build ffmpeg under windows 8.1 by using this script and last version of Mingw+Msys2 , but it gets error for any hg clone from bitbucket.org , e.g: $ hg clone https://bitbucket.org/multicoreware/x265 abort: error:Network is unreachable After searching on the Internet I saw this page and realized it is because that bitbucket.org has IPv6 and I can not access to it . Please see results of the following commands: $ ping -n 10 bitbucket.org Pinging bitbucket.org [104.192.143.2] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Request timed

Increase depth of shallow clone without fetching other branches

半城伤御伤魂 提交于 2019-12-08 05:11:21
问题 To save disk space, I generally shallow clone: The latest remote git tag The default branch with: git clone --depth 20 --shallow-submodules --recurse-submodules How do I increase increase the depth of a shallow clone? Note: I don't want to increase to a full clone, I want to deepen only what I already have. 回答1: Use git fetch --deepen=<depth> : man git-fetch says: --deepen=<depth> Similar to --depth, except it specifies the number of commits from the current shallow boundary instead of from

Mingw+msys2 : Failed to connect to bitbucket.org : Network is unreachable

試著忘記壹切 提交于 2019-12-08 03:59:47
问题 I want to build ffmpeg under windows 8.1 by using this script and last version of Mingw+Msys2 , but it gets error for any hg clone from bitbucket.org , e.g: $ hg clone https://bitbucket.org/multicoreware/x265 abort: error:Network is unreachable After searching on the Internet I saw this page and realized it is because that bitbucket.org has IPv6 and I can not access to it . Please see results of the following commands: $ ping -n 10 bitbucket.org Pinging bitbucket.org [104.192.143.2] with 32

ssh clone not cloning repo in git

大憨熊 提交于 2019-12-08 02:15:05
问题 I want to clone a repo of another person using ssh. For this I did following things: Generated an ssh key in local machine. Added the key to the user's account from which the repo has to be cloned. Tested whether the key was added by running ssh -T git@github.com which outputs : Hi username! You've successfully authenticated, but GitHub does not provide shell access. Ran git clone git@github.com:repo/repo.git . The last step outputs Cloning into 'Foldername'... and I can see that the folder