In a Git repository, how to properly rename a directory?
In a Git repository, how to properly rename a directory? I think it should work to copy the directory to be renamed to a new directory with desired name, and delete the old directory, and
git commit and
push everything. But is this the best way?
I do not want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories. Instead, I want to use simplest way to rename local branch, which is not pushe
I want to use git to track my config files so I have to make a repository in my home directory. However I don't want it to be a repository for all the subfolders because I don't want to give it a comm
I need to rename my existing repository root name to a new name. I am using svnserve server. URL: svn://somename.dev.loc.con.dept/export/svnrepo/**old_name/CL_abc/trunk Repository Root: svn://somename
I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository. How can I
Non-standard situation, but maybe I'm not the first one to get trapped into it. Imagine: 1) You have working git directory, up to date 2) You change some files in it 3) You delete .git directory How t
How do I add an empty directory (that contains no files) to a Git repository?
This question already has an answer here: How to fully delete a git repository created with init? 6 answers I can't find the command. I tried Googling git 'delete a repository'.
I need to rename the root repository folder, for example: github.com/Org/projectX to github.com/Org/projectY Should I be using 'git mv'? or this can only be done by cloning and creating a new projectY
Several posts talk about removing a file or directory from GIT - but they don't go as far as explaining how to PUSH those changes into the main repository. For example, this works just fine to remove
I have initialized and commited some files within a working directory in the current structure -project_name --- sofware_directory ----- .git ----- some_directory -------- working_directory I am real
I am interested if I can do repository browsing with git in the following way: given a remote repository -fetch only data about the directory structure of a certain revision at the beginning - fetch f
I have a git repository set up that looks something like this: PROD / BARE_REPO — TEST \ DEV I do all my development on dev (obviously). This is also where I create my tags. When something is ready
I didn't install anything for git and when I open a file from git repository Emacs show Git:<BRANCH NAME> in modeline. How Emacs know that it's git repo? I'm using Emacs 24.3.1.
There is a complete source code of a simple app, and a need to create teaching material based on it. So, I was thinking, init a git repository from complete sources, then start simplifying and removin
I'm a Git beginner. I'm reading and trying out this Git tutorial. And I have also read the Git branching model here and this question on SO. But I'm still confusing how I should use Git properly for m
I've been developing a java application using git as source code repository. I'd like to share the project with other java developers and hg seems to be most used by them. My question is how do I con
I've tried pretty much anything I could find on Google, if you enter: bluehost git repository all of the results on first page and some on second, I've tried. Also I've tried this very useful tutorial
How can I convert a 'normal' Git repository to a bare one? The main difference seems to be: in the normal git repository you have a .git folder inside the repository containing all relevant data and
For example, https://github.com/vanillaforums/Garden is the GitHub repository. But I only want to 'watch' this directory https://github.com/vanillaforums/Garden/tree/master/plugins in the repository.
How can I deploy an existing PHP project using Git and what is the best free git repository?
On my iMac I am getting the error message 'Repository Offline' when trying to push or pull to and from my git repository through Xcode! in the sidebar under Source Control it has the name of my reposi
I have a git repository that is just a directory tree (/myprogram/src/com/mycompany/test) with some source files. I wish to create an eclipse project around this repository. Both orders of create proj
I have a working directory that is a git repository. Today, I changed a lot in the folder and file structure and also moved the .git dir around a bit. Now, trying to commit those changes, I am getting
I have tried to build a latest Qt from the Git repository on Windows with the following commands: mkdir c:\qt\latest cd c:\qt\latest git clone git://gitorious.org/qt/qt.git cd qt set PATH=%PATH%;c:\qt
I currently have a big git repository that contains many projects, each one in its own subdirectory. I need to split it into individual repositories, each project in its own repo. I tried git filter-
Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it? For example, let fw.git be a framework repository, with these dirs: |fw.git \---|test |c
I'm still learning Git, and I did a dumb thing by adding a directory full of many large files to my repo. Now, I would like to remove the directory from Git. I know how to use gitignore, and i know ho
I'm new to git so forgive me if this is a dumb question. I have a git repository and I need to copy a particular revision of the repository to its own separate directory. The copied version doesn't ne
Initially I wanted a directory and its contents to be managed in my project. Now I'd prefer it was ignored entirely. I also want to continue working in it, so I don't want to move it or delete it. How
We have a central GIT repository in our organization. I would like to know what is the best way to rename this central repository. Thanks!
I used reposurgeon to convert ma svn into a git repository here: (How do I convert an svn repo to git using reposurgeon?). It seems like it converted all tags to annotated tags. How can I change tha
I have clone a git repository from the server on my laptop A running macosx. I have a laptop B running linux, how can I clone from the git repository on laptop A? How can I get the url to clone from?
I have a git repository, where in each commit, several things have been done, and as such, my one-liner commit messages are insufficient to fully explain what is going on. I would like to be able to c
I have the directory structure like this: main |-- folderA |-- folderB | |--- .git Unfortunately, I decided I need to track files in folderA under the same repository as folderB. Is there other ways
I checked the documentation of NERDTree, but didn't find the way to create new file/directory or rename/move it (once I'm browsing directory tree). In the netrw plugin it would be easy, but this one i
I accidently copy a directory to my working directory which also contains a .git directory and all my old version tracking history are gone. Anyway to restore the previous .git directory? Thanks a lot
I have found a repository in github that have into the directories other gits repository (as symlink). But I don't know how make this kind of symlinks. Kivutar/twinsisters/tree/master/libs
I have an svn repository where the original structure looked something like: features/ trunk/ branch1/ But then over time moves to the standard svn structure of: trunk/ branches/ tags/ etc. Is there
If I clone a git repository like this git clone <some-repository> git creates a directory, named as the 'humanish' part of the source repository. (according to the man page). Now I want to cre
Our company have git repository like this: app ├── project1 ├── project2 ├── projectN └── solution.sln I'm interested only in project1 and want to make my repository with project1 and mess with it an
I recently deleted my Git Hub account and created a new one,but when I try to commit projects to the new account, I'm getting errors referring to projects from the old account like: remote: Repository
So I've created a git repository, set up some tags and remotes on my working copy, and then pushed the repository to my server with git push --mirror my.remote.repository Supposedly, pushing with git
I have following folder structure: FolderA -FolderA1 (child of FolderA), and -FolderA2 (child of FolderA) Now, Folder A1 and A2 are git repositories. I am writing a script to get the git repository U
I've got a directory containing utility libraries that were developed in a branch in one git repository, but it turns out they really belong in a different directory in a different project. I've read
If git fetch gets interrupted for example by Ctrl-C or caused by connectivity problems, after that git fetch and also git pull fail to work. user@computer:~/code/openttd-git$ git fetch ^C user@compute
I am looking to remove a directory from local and central repository. I managed to do it locally by hg remove name_directoriy hg commit However, after pushing my changes to the central repository th
If i do a git checkout <SHA> where <SHA> is some commit-id hash from git log, my repository returns to a previous stage. How can I reverse the effect of git checkout <SHA>?
I wanted to rename one of my repositories on GitHub, but I got scared when a big red warning said: We will not set up any redirects from the old location You will need to update your local repositor
A git clone is set up to support pushing/pulling back into the original repository. How do I use git-remote (and/or other commands, configuration files, etc.) to change the two repositories such that
I'm writing Autotools code and in the process of development, tons of files are generated. Is there anyway to tell git to remove all files from a directory that are not part of the repository? Thanks!