Open source project currently hosted on java.net (SVN, JIRA) to encourage participation I want to move it to bitbucket (Git, can link to JIRA). This is the only data I need to transfer, things like the java.net mailing list are of little/no interest.   How do I transfer the SVN source to Git whilst preserving the history What should I do about the JIRA issues ?
4517
I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:  SVN repository in: svn://myserver/path/to/svn/repos  Git repository in: git://myserver/path/to/git/repos  git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos   I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.
25798
I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO?
47557
I'm trying to implement a configuration mechanism that allows in a certain project to deploy through svn a cron configuration.  I immediately thougt that what I should do is cerate symlinks from /etc/cron.d/ to my project's cron file (which in turn is controlled by a vcs), but that seems to not be working.  I found some old forum messages referring that symlinks were not supported and other saying that they are. Which is it?  Is there anything else or any other good way to achieve this?
76145
I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit?  I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though.
71262
I'm not a git master, but I have been working with it for some time now, with several different projects.  In each project, I always git clone [repository] and from that point, can always git pull, so long as I don't have outstanding changes, of course.  Recently, I had to revert to a previous branch, and did so with git checkout 4f82a29.  When I was again ready to pull, I found that I had to set my branch back to master.  Now, I can not pull using a straight git pull but instead, have to specify git pull origin master, which is annoying, and indicates to me that I don't fully understand what is going on.  What has changed which does not allow me to do a straight git pull without specifying origin master, and how to I change it back?  UPDATE:  -bash-3.1$ cat config [core]     repositoryformatversion = 0     filemode = true     bare = false     logallrefupdates = true [branch "master"] [remote "origin"]     url = git@github.com:user/project.git     fetch = refs/heads/*:refs/remotes/origin/*   UPDATE 2: To be clear, I understand that my original method may have been incorrect, but I need to fix this repo so that I can simply use git pull again.  Currently, git pull results in:  -bash-3.1$ git pull You asked me to pull without telling me which branch you want to merge with, and 'branch.master.merge' in your configuration file does not tell me either.  Please name which branch you want to merge on the command line and try again (e.g. 'git pull  '). See git-pull(1) for details on the refspec.  If you often merge with the same branch, you may want to configure the following variables in your configuration file:      branch.master.remote =      branch.master.merge =      remote..url =      remote..fetch =   See git-config(1) for details.   I can tell git pull which branch to merge, and it works correctly, but git pull does not work as it did originally before my git checkout.
12262
I need an elegant solution to store my dotfiles on GitHub for easy access. I tried to create a dotfiles directory and symlink all the dotfiles into there. Then I tried adding the symlinks to git and committing in that directory, but git saves the links not the contents of the files it points to. Is there a way to do this or something similar?
22394
I'm using a series of commands for deploying my files to production. This is currently done manually.  Is it possible to make these commands into an executable file? So that I don't have to copy paste these commands each and every time.  When the first line is executed i.e., connecting to the root server, it will ask for the password and I have to paste the password: xxxxxxxxxxxxxx  ssh root@server pwd: xxxxxxxxxxxxxx ssh-agent bash ssh-add bi-master cd /home/trans/bimaster git status git pull git@bitbucket.org:xxxxxxxxx/bimaster.git master   Note : I'm the admin of the server, Since the project is been done by different teams as of now, we have decided to do manual deployment (cannot use Jenkins or any other tools for automated deployment), as we have to check the status of some files.
92592
Is there any equivalent to TortoiseSVN but for Ubuntu / Git? I'd like to integrate Git commands to Nautilus.
80933
I tried committing files with CRLF-ending lines, but it failed.  I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and instead try .  Please share only one best practice per answer.
37720
Let's say I've got a setup that look something like  phd/code/ phd/figures/ phd/thesis/   For historical reasons, these all have their own git repositories. But I'd like to combine them into a single one to simplify things a little. For example, right now I might make two sets of changes and have to do something like  cd phd/code git commit  cd ../figures git commit   It'd be (now) nice to just to perform  cd phd git commit   There seems to be a couple of ways of doing this using submodules or pulling from my sub-repositories, but that's a little more complex than I'm looking for. At the very least, I'd be happy with  cd phd git init git add [[everything that's already in my other repositories]]   but that doesn't seem like a one-liner. Is there anything in git that can help me out?
75869
I am looking for opinions of how to handle large binary files on which my source code (web application) is dependent. We are currently discussing several alternatives:   Copy the binary files by hand.   Pro: Not sure. Contra: I am strongly against this, as it increases the likelihood of errors when setting up a new site/migrating the old one. Builds up another hurdle to take.  Manage them all with Git.   Pro: Removes the possibility to 'forget' to copy a important file Contra: Bloats the repository and decreases flexibility to manage the code-base and checkouts, clones, etc. will take quite a while.  Separate repositories.   Pro: Checking out/cloning the source code is fast as ever, and the images are properly archived in their own repository. Contra: Removes the simpleness of having the one and only Git repository on the project. It surely introduces some other things I haven't thought about.    What are your experiences/thoughts regarding this?  Also: Does anybody have experience with multiple Git repositories and managing them in one project?  The files are images for a program which generates PDFs with those files in it. The files will not change very often (as in years), but they are very relevant to a program. The program will not work without the files.
12657
Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP.  I have a project under Git control.  I'd like to add a submodule:  git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu   But I get  ... got 1b0313f016d98e556396c91d08127c59722762d0 got 4c42d44a9221209293e5f3eb7e662a1571b09421 got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7 error: Unable to find abc07fcf79aebed56497e3894c6c3c06046f913a under http://github.com/jscruggs/metri... Cannot obtain needed commit abc07fcf79aebed56497e3894c6c3c06046f913a while processing commit ee576543b3a0820cc966cc10cc41e6ffb3415658. fatal: Fetch failed. Clone of 'http://github.com/jscruggs/metric_fu.git' into submodule path 'vendor/plugins/metric_fu'   I have my HTTP_PROXY set up:  c:\project&gt; echo %HTTP_PROXY% http://proxy.mycompany:80   I even have a global Git setting for the http proxy:  c:\project&gt; git config --get http.proxy http://proxy.mycompany:80   Has anybody gotten HTTP fetches to consistently work through a proxy?  What's really strange is that a few project on GitHub work fine ( for example), but others consistently fail ( for example).
85544
I have a Github repository that I forked from some other project several months ago. It is now several months later and the original master repo has changed. I would like to update my repo to reflect those changes. Is this possible in the Github web interface? Or do I just need to delete the repo and re-fork it?
64013
I am migrating a client's SourceSafe repository (3 projects) to SVN and two of the projects share source files.  (These projects are separate products - with different names and release versions, etc)  Has SVN resolved this shortcoming?  How do people generally handle this scenario?  Of the options I know about/can think of   Use the external or extern or whatever for SVN.  I hear this is not a good option for various reasons Create a new project (maybe called shared) that contains the source.  The problem with this is that we still have to get that code (it is not a library) and import it into the project somehow.  It can be shown to be the same problem as the one above and it introduces the overhead of an additional product/project. Just check in the files in both repositories and cross-update them.  This requires developers to know about the sharing and to remember to check in.  I suppose I could write a script that checks all known shared files and updates them when needed. Have one repository for the two projects that share.  This leaves me with the problem having to create a top level project/repository that contains the two and it is a problem for labeling.  I do not really want to label the top pseudo project.  (the tags, trunk and branch things are not exactly where I would want them.)   I will probably go with the last option.  Any other comments?
97791
I have a repository on github with a main branch (master) and a branch for some experimental work.  I made some commits and pushed to the experimental branch and everything was fine.  Now, on a different machine, I try to clone my repository (git clone repository) and then switch to the experimental branch (git checkout branchname) but every time I do this my head gets detached and I can't push my changes.  What am I doing wrong?  I get the feeling I'm missing a fundamental git concept someplace but reading random git man pages isn't giving me any clues.  I'm new to git so I'm sorry if I'm being an idiot but I can't find anything in the docs that will help me reattach my head.  EDIT  The concept of a tracking branch is what I was missing.  Now that I grok that concept everything is clear.  Personally, I find the git branch --track syntax to be much more intuitive than git checkout -b branch-name origin/branch-name.  Thanks for the help!
83690
What is the best way to version control my database objects? I'm using Visual studio 2005/2008 and SQL server 2005. I would prefer a solution which can be used with SVN.
116386
I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs".  I'd like to move the "docs" folder (and all of its revisions) to the "project_docs" repository. Is there a way to do this?