git-clone

Setting a password for Git cloning?

眉间皱痕 提交于 2019-12-23 15:54:12
问题 I want to put a password to my repository so that the password is asked, when cloning from my repository. 回答1: To restrict access to repository cloning, you need to use the ssh://... protocol, and provide ssh access to only those users you want to have access. What you probably should do is look up the various "git workflow" questions and answers - they describe the means by which various team members pull/push from/to each other. There are many ways to do this. 回答2: I recomend gitosis to

Git: File that must be distributed, but ignored / not reuploaded? [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-23 09:37:08
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: git: can i commit a file and ignore the content changes? I have a simple problem, and I hope there's a simple solution. Using Git (and Tower, great app), I have a repository that has a file that everyone needs to download when they clone the repo, BUT that file should never be reuploaded with changes (because it's a configurtion file, with database-specific usernames / passwords, and paths) - the changes are

Can't clone repo using git clone git://… - ok with git clone http://

半世苍凉 提交于 2019-12-23 07:43:50
问题 Git newbie here. I'm setting up git on a new Ubuntu VM and trying to clone some repos. The clone works for the following command: git clone http://github.com/organisation_name/repo_name (after prompt for username/password), but fails for git clone git://github.com/organisation_name/repo_name and also git clone git://github.com/organisation_name/repo_name.git with the same error message: Cloning into 'repo_name'... fatal: remote error: Repository not found Of course the obvious answer is "use

Preserve git remotes

别说谁变了你拦得住时间么 提交于 2019-12-23 07:31:19
问题 I have fixed network of git remotes and I would like them to be attached to repository. Unfortunately git-clone doesn't clone remotes. Is there a way around it? 回答1: I begin this command https://github.com/juanpabloaj/git-remote-init for save the remotes in a .gitremotes file 回答2: There is no way to do this with git, as far as I know. Telling users to run scripts post-clone is what people tend to do. If it's a ruby project, you probably have rake , for example, so you could have a rake post

Github clone remote branch error not found

半世苍凉 提交于 2019-12-23 04:46:03
问题 I'm trying to clone openFrameworks on my windows 8 based computer and I'm using this command git clone -b develop git://github.com/openframeworks/openFrameworks.git This is the error I get: fatal: Remote branch developed not found in upstream origin. Any ideas? Because when I looked up the git from the github.com site it seems to be there. 回答1: On the site: https://github.com/openframeworks/openFrameworks There is a button called branch:master. It shows you which branches are available and

Git doesn't allow me to enter my password for cloning since I got it wrong the first time

为君一笑 提交于 2019-12-23 03:40:32
问题 I ran the command once, and got a pop-up that said I needed to enter my username and password, I then did not enter the right one, and now the window to enter in the username and password doesn't show up C:\Users\User\Desktop>git clone https://gitlab.com/group/project.git Cloning into 'project'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com/group/project.git/' Is there some way for me to redo this, so that I can enter the username and password once

Pycharm behaving strange with Git (Filename in tree entry contains backslash)

我的未来我决定 提交于 2019-12-22 11:33:41
问题 I just got a new laptop and wanted to clone my universities git repository with pycharm . Whenever I try to clone the repository, using either Git bash/GUI or Pycharm, it fails with the error, Filename in tree entry contains backslash: 'Aufgabe4a.py# coding=utf-8 ... Within the error is the complete content of the mentioned file. As this is the repo of my university, I can't just go and rename files that are not mine. The weird thing is, this doesn't happen on my desktop . I can clone the

Forked GIT submodule, and changed source URL. But clone still pulls old source URL?

对着背影说爱祢 提交于 2019-12-22 11:21:28
问题 I have a submodule in my git project, which I have made some changes to, and uploaded to my own git server to fork it. I've changed the source URL in the master git repository to the new submodule's location, and ran git submodule sync so my .git/config file is up to date. Then i pushed everything to Bitbucket, where my data is stored. However, when I clone my main git repository, it is still pulling down the data for the submodule from the old location. Any idea what might be causing this to

How to Check if A Git Clone Has Been Done Already with JGit

白昼怎懂夜的黑 提交于 2019-12-22 10:58:43
问题 I learning git and using JGit to access Git repos from java code. Git by default does not allow to clone to a non-empty directory. How do we figure out that a git clone has already been done for a particular git repo in the local machine so that we can only do a Git pull subsequently? Currently I'm using this approach: if a root folder is existing in the specified location clone has been done pull else clone Not sure if this is correct though. Any better ideas? Thank you. 回答1: This is the

git clone without objects to do git log

不想你离开。 提交于 2019-12-22 07:57:50
问题 How can I clone a git repository without getting the actual files and all their revision deltas? I only want to be able to do git log | grep , no need to access files' contents. I would like to skip this part of the cloning: Receiving objects: 12% (359112/2981072), 432.66 MiB | 1.67 MiB/s There are some repositories whose logs I want to grep, but without downloading/checking out the whole repository, because they weigh gigabytes. Even a solution where I only get a single branch's logs (e.g.