Obtains a local copy of a remote Git repository.
Questions tagged [git-clone]
1359 questions
0
votes
1 answer
Create submodules from a already created bitbucket repo
Hello I am using git and the web interface bitbucket
I have the following structure in bitbucket
a
|-b
|-c
Thing is I want to be able to clone only c. I have red that submodules are the way to go.
How can I make c a submodule and clone it somewhere…

statquant
- 13,672
- 21
- 91
- 162
0
votes
0 answers
How can I get other GIT branch from local copy
My Git server has been crashed but I have my local copy. There were 2 branches(Branch-A and Branch-B) in the GIT. Right now, I am using Branch-A. Is there any way to get code of other branch? Thanks in advance.

Tasfin
- 32
- 6
0
votes
1 answer
Branch name clashes when pushing
What I think I know
When I clone or fetch from a remote repository, the name of the remote is prefixed to the names of the branches imported from this remote.
For instance, if the remote is called origin in my repository, then after cloning the…

Evan Aad
- 5,699
- 6
- 25
- 36
0
votes
1 answer
Github set up private repository contributor error: fatal: Could not read from remote repository
I'm new using Github. And today I try to contribute to a private repository(which I am already added as contributor) and set up connections in terminal using:
$ git clone git@github.com:myusername/EFIapi.git
But it returns an error as…

Daisywang
- 287
- 3
- 17
0
votes
1 answer
Using git to grab/update specific files in a repo to a directory
I'm very new to using git, so I understand this may seem like a simple question or one that's been asked before, but I can't word it to get an answer. Anyway.
My thoughts are that I code on my laptop, at the minute when I want to put my program on a…
user5650823
0
votes
1 answer
Could not resolve host : github.com error while cloning floodlight in git in mininet
Trying to install floodlight controller in mininet

Mamata Tayade
- 21
- 4
0
votes
1 answer
Git BitBucket Clone With Different Username
I'm using Bitbucket, not Github. All the advice I find seems to be Github related. I installed git and I cloned a repository. The first time I did this, it gave me a popup and requested username and password which was great. Now, however, I want to…

CodeMonkey
- 1,795
- 3
- 16
- 46
0
votes
2 answers
How do I fork a github project to a git repo outside github?
I've never worked with git before this project I'm trying to get going, so please bear with me.
Basically, my team is starting a new project in our own git repo which will have other github projects as dependencies. We expect we will have to do…

Marcos Marin
- 752
- 1
- 5
- 17
0
votes
1 answer
Open a project in Netbeans from a cloned github repository
On Ubuntu, I cloned a github repository in a given directory and want to add it to Netbeans. I tried using Team>Clone but I ended with a new project in "NetBeans Projects" folder.
Documentation I found tells me everytime to start and create a new…

GondraKkal
- 87
- 2
- 16
0
votes
1 answer
How to clone Gists with their real names and not uuid?
When cloning a Github Gist, a local repository named after the gist uuid is created, and this repository contains the gist file:
+---myLocalRepo
|
\---uuid
|
\---file.md
Is there a way to skip the uuid and clone directly the…

ecrin
- 91
- 1
- 7
0
votes
1 answer
GitHub Troubleshooting
I recently completed an online course that allowed me access to the instructor's GitHub repositories which were used as the scaffolding for each of the projects. I'm attempting to create my own project using the same boilerplates, however I'd like…

pghInitechBranch
- 115
- 4
- 14
0
votes
1 answer
Is it possible to tell git to ignore certain lines when doing merge or rebase?
Lets say I have an origin called myorigin and a clone called myclone. I want to keep myclone updated with myorigin changes. In myorigin I have a file which content is:
Name: myorigin
some text
some more text
and after cloning I modify this file in…

Alvaro
- 9,247
- 8
- 49
- 76
0
votes
1 answer
How to delete/change the remote origin master branch
I have a movile project repo in bitbucket and I cloned that repo into a eclipse project the remote branch master/origin point too that repo this is ok, but I created another empty repo in bitbucket and I want to push my project in that empty…

Bill_Data23
- 659
- 2
- 14
- 30
0
votes
3 answers
Where does the file .git come from?
I've initialized several local git repos but none of them have a .git file; only a .git directory. I would like to clone one of these repos to another machine on the local network, but clone seems to require a .git file. How does…

Tom Russell
- 1,015
- 2
- 10
- 29
0
votes
1 answer
What if I am trying to clone github private repository over https protocol and my password contains @ character in it?
I have a private github repository and i can clone the repository by making https request only. SSH is not an option for me.
My command should be like this:
git clone https://username:password@github.com/asrrepo/QA.git
But what if my password…

UserASR
- 2,015
- 4
- 24
- 47