version-control

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: fatal: Pathspec is in submodule

ぃ、小莉子 提交于 2019-12-28 03:18:11
问题 I'm trying to get TravisCI to automatically deploy my Hakyll static site, according to this guide. Here's how my repo is set up. I have my source branch, which contains my hakyll and markdown files. It builds the html into the _site directory, which is set up as a submodule, linked to my master branch. I build the site without problem, then cd into the _site directory. However, when I try to git add ./* the newly generated HTML files, I get the following error: fatal: Pathspec './about.html'

Visual Studio Git Source Control without Git for Windows or Github extension

你说的曾经没有我的故事 提交于 2019-12-28 03:09:06
问题 In Team Explorer it prompts me to install 3rd party git tools, I don't intend on using the Git command line, just Visual Studio's native GUI to clone, pull, commit, sync, merge and maybe issue pull requests. So do I need to install 3rd party Git command prompt tools (or Github extension)? because I already installed 2.10.1 and didn't notice anything different. What do I gain if I do and what do I lose if I don't, because I want a clean minimal installation, and all tutorials and docs out

Re-establish TFS source control bindings

佐手、 提交于 2019-12-28 01:51:34
问题 I have about a dozen Visual Studio 2010 projects I've been working on that are versioned in a TFS repository. Recently I went on a vacation and upgraded my computer's OS to Windows 7 64 bit. I've reinstalled Visual Studio, and I can connect to my Team Foundation Server and see my projects...only my bindings aren't working correctly. Most of the time none of my files seem to be under source control, but in a couple of projects my source control bindings are OK in the root folder, but not

Can I make a user-specific gitignore file?

白昼怎懂夜的黑 提交于 2019-12-28 01:47:24
问题 I want to change the gitignore, but not everyone on the team wants these changes. How can a user have their own specific git ignore file? 回答1: For user-specific and repo-specific file ignoring you should populate the following file: $GIT_DIR/info/exclude Usually $GIT_DIR stands for: your_repo_path/.git/ 回答2: You can create your own .gitignore using git config --global core.excludesfile $HOME/.gitignore Then put your desired entries in that file. 回答3: In their .gitconfig: [core] excludesfile =

git-svn: how do I create a new svn branch via git?

帅比萌擦擦* 提交于 2019-12-28 01:39:12
问题 I have a git repository which tracks an svn repository. I cloned it using --stdlayout . I created a new local branch via git checkout -b foobar Now I want this branch to end up in …/branches/foobar in the svn repository. How do I go about that? (snipped lots of investigative text. see question history if you care) 回答1: I know this question has been answered a while ago, but after reading it, I it might help adding examples of the specific git svn branch command and relate it to a typical

git-svn: how do I create a new svn branch via git?

一笑奈何 提交于 2019-12-28 01:39:05
问题 I have a git repository which tracks an svn repository. I cloned it using --stdlayout . I created a new local branch via git checkout -b foobar Now I want this branch to end up in …/branches/foobar in the svn repository. How do I go about that? (snipped lots of investigative text. see question history if you care) 回答1: I know this question has been answered a while ago, but after reading it, I it might help adding examples of the specific git svn branch command and relate it to a typical

Locking binary files using git version control system

落花浮王杯 提交于 2019-12-27 16:50:32
问题 For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fundamental principles of distributed source control, but I don't see how a web development company can take advantage of git to track source code and image file changes when there

Locking binary files using git version control system

别来无恙 提交于 2019-12-27 16:50:29
问题 For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fundamental principles of distributed source control, but I don't see how a web development company can take advantage of git to track source code and image file changes when there

Git allows for branch change with unstaged changes

无人久伴 提交于 2019-12-27 13:38:21
问题 Git is allowing me to change branches when I have changes not staged for commit (modified files). Is there a configuration for this somewhere? Edit: At first I thought this was a configuration that I needed to set to disallow changing between branches if there are modified unstaged files. But by Emily's comment, it appears that you're prompted if the files differ between branches, and not prompted otherwise. 回答1: How it decides A quick experiment shows the following. Suppose you're on branch