git-clone

How do I clone a single branch in Git?

牧云@^-^@ 提交于 2020-01-03 03:13:15
问题 I have a local Git repository called 'skeleton' that I use for storing project skeletons. It has a few branches, for different kinds of projects: casey@agave [~/Projects/skeleton] git branch * master rails c c++ If I want to check out the master branch for a new project, I can do casey@agave [~/Projects] git clone skeleton new Initialized empty Git repository in /Users/casey/Projects/new/.git/ and everything is how I want it. Specifically, the new master branch points to the skeleton master

Administration of GIT server. Track the process of repository cloning

瘦欲@ 提交于 2020-01-02 05:43:08
问题 How track the process of repository cloning on GIT server? I need information about who and when have cloned the repository. Furthermore where can I find the information about how much new repository were made and who did they on the server? It needs for making statistic. 回答1: As mentioned in this SO question: Cloning is a read-only operation, the original repository isn't modified. There is no way you can pull statistics for data that simply isn't tracked. This isn't entirely true, however,

Grit's clone method is undefined?

不打扰是莪最后的温柔 提交于 2019-12-30 06:53:25
问题 I've recently started working on a project that uses git for storage and ruby as a front-end. The first version of my script used ruby-git, which was ok though pretty simple. When I needed to do more specific work with my commits and logs it was recommended that I move to grit. However, I've a road block early on- grit seems incapable of cloning remote repositories. All examples I've found using the Repository class create a local repository and searching through the source I've found Grit's

Git clone from remote ssh repository - change the machine on the remote network before executing the clone command

你说的曾经没有我的故事 提交于 2019-12-30 03:18:14
问题 I'd like to clone a git repository from my company's servers to my personal computer. The only way to acces these servers from "outside" is by logging in per ssh to 'machine1' ssh user@machine1.company.xy Unfortunately, git ist not installed on that specific machine. So a git clone like git clone ssh://user@machine1.company.xy/path/to/repo <local-repo-path> won't work. What I would have to do is to change to another machine 'machine2' where git is installed after having logged in to the

Progress indicator for git clone

旧巷老猫 提交于 2019-12-29 04:33:13
问题 Is it possible to get a progress bar when doing a git clone ? I'm wondering because I am currently doing a git clone that has taken a few minutes so far and would be curious to know if it is going to finish soon. 回答1: Not really. There are various stages to git clone : discover the objects that need to be sent ("Counting objects: nnn") compress and send those objects index the received pack check out received files Stage 1 involves walking through the commit graph from each branch head

Git clone without .git directory [duplicate]

有些话、适合烂在心里 提交于 2019-12-28 03:19:12
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to do a “git export” (like “svn export”) Is there a flag to pass to git when doing a clone, say don't clone the .git directory? If not, how about a flag to delete the .git directory after the clone? 回答1: Use git clone --depth=1 --branch=master git://someserver/somerepo dirformynewrepo rm -rf ./dirformynewrepo/.git The depth option will make sure to copy the least bit of history possible to get that repo. The

Git clone with custom SSH using GIT_SSH error

我的未来我决定 提交于 2019-12-28 01:49:13
问题 I am trying to clone a Git repo using a custom SSH command. I set the SSH command in the GIT_SSH environmental variably be running export GIT_SSH="/usr/bin/ssh -o StrictHostKeyChecking=no -i /home/me/my_private_key" . But when, after the previous command I run git clone git@bitbucket.org:uname/test-git-repo.git , I get the following weird error error: cannot run /usr/bin/ssh -o StrictHostKeyChecking=no -i /home/me/my_private_key fatal: unable to fork Can you please help me out solve this

BitBucket - download source as ZIP

喜夏-厌秋 提交于 2019-12-28 01:42:47
问题 I know I can get the project through git clone command, but is there any way, how to download the project through the web interface from BitBucket.org? In the best way, I am looking for a way to download a project source as ZIP compress file. 回答1: For the latest version of Bitbucket (2016+), the download link can be found in the Download menu item. Pre-2016 First method In the Overview page of the repo, there is a link to download the project. Second method Go to Downloads -> Branches ->

BitBucket - download source as ZIP

99封情书 提交于 2019-12-28 01:42:09
问题 I know I can get the project through git clone command, but is there any way, how to download the project through the web interface from BitBucket.org? In the best way, I am looking for a way to download a project source as ZIP compress file. 回答1: For the latest version of Bitbucket (2016+), the download link can be found in the Download menu item. Pre-2016 First method In the Overview page of the repo, there is a link to download the project. Second method Go to Downloads -> Branches ->

Files showing as modified directly after a Git clone

别等时光非礼了梦想. 提交于 2019-12-27 10:30:56
问题 I'm having an issue with a repository at the moment, and though my Git-fu is usually good, I can't seem to solve this issue. When I clone this repository, then cd into the repository, git status shows several files as changed. Note: I haven't opened the repository in any editor or anything. I tried following this guide: http://help.github.com/dealing-with-lineendings/, but this didn't help at all with my issue. I have tried git checkout -- . many times, but it seems not to do anything. I'm on