I’ve a repository which contains several directories at the root, e.g. gitroot/a gitroot/b gitroot/c And I would like to create a new git repository from only the contents of a, whilst retaining its history. Is this possible? I’ve seen the sparse checkouts, but I’m not sure how I could use this to create a brand […]
I’m trying to use git repo for my own project. I understand I have to create a default.xml file and using to link to all the repositories available but It’s not clear how to do that. I tried creating a simple xml file and put in on a server. I also added 2 remote configurations […]
I accidentally performed a git remote rm <remote_repo_name> 🙁 Will a git remote add remote_repo_name <remote_repo_path> add it back as a remote even though the remote already had previously pushed content ?
Im trying to have a shared remote repository where team members can push their changes and see them live in a staging environment. Ive looked some options but I’m still stuck. Bare repositories have no working tree, and ive tried a normal repository with receive.denyCurrentBranch set to false, (which lets me push to the remote) […]
The git repository of my current project, containing source code and image files, measures around 1.2 gigabytes. But the the actual files of all branches are only around 205 megabytes in size. I am a beginner with git and I guess that the huge repository size is caused by moving the image files around in […]
Is it possible to change the default/root directory of where git looks for projects so you can clone a project like this: git clone firstname.lastname@example.org:project.git rather than like this: git clone email@example.com:/var/www/html/project.git I’ve seen git –git-dir=<path> in the help page but it seems that it only takes effect for that particular command rather than being […]
ok I try again to describe my problem. At first let me say I am a beginner in Git. I have read a lot of stuff but there some points that are not clear for me. I work local on a workingcopy. My head on local branchx have the same id as remote branchx on […]
I have a git repository that had a directory called Code. We wanted to remove the capitalization and change the directory name to code. We made that change locally and pushed it to the repo. Now on GitHub, it appears that the repository has two copies of the directory, one with each capitalization. When you […]
I have a few git repos on a local server and I want to synchronise them with Github for remote access. How do I clone these local repos to Github? After this, is it just a case of assigning the github repo as a remote of the local server repo?
I have the following change history in my git repository: —X—Y—Z—A—B—C I began working from a base of code Z and made three changes A, B and C. Each of these changes has been uploaded as separate reviews on Gerrit and each depends on the change before it. Following a review I want to remove […]