I'm still new to git, so bear with me. I started adding a feature to my project in my current branch and committed it, then found out that I needed to add a more important feature first. (If I had thought about it, I would have just put the new feature into another branch but alas - hindsight is 20/20.)
I want to go back to my previous...
We use SVN for our source-code revision control and are experimenting using it for non-source-code files.
We are working with a large set (300-500k) of short (1-4kB) text files that will be updated on a regular basis and need to version control it. We tried using SVN in flat-file mode and it is struggling to handle the first commit (5...
I understand that Git can be used without a central repository. However, I am starting a project with several other people, and we are geographically distributed. I.e. We will never be on the same LAN to synch repos.
So my question: Is it possible to push / pull changes from each others repos over the internet? If so, how do I go about ...
I am transferring an SVN repository into Git and need to remove all files within a specific directory (sites/default/files/*) from all branches and tags. The reason is that all files in this directory were accidentally committed long in the past and are now making the Git repository 900+ MB in size. This repository has not been shared ye...
I need to write a script that incrementally keeps track of files and directories added and removed from a git repo.
I have tried to use:
git log -n1 --pretty="format:" --name-only
But that only tells me which files were committed. It does not specify if it was added or removed.
Any ideas?
...
Are there alternatives to gitosis that are easier to use?
I currently run gitosis on a Ubuntu server for my lab. We regularly add new users and repos. I find the gitosis.conf syntax non-intuitive, and if I make even a minor mistake the whole gitosis system fails, see for example this question on SO. When gitosis fails it also kills...
Trying to install Git, I ran configure and make, but got the following error message:
make: Fatal error in reader: Makefile,
line 221: Unexpected end of line seen
The Makefile looks like:
218: GIT-VERSION-FILE: FORCE
219: @$(SHELL_PATH) ./GIT-VERSION-GEN
220: -include GIT-VERSION-FILE
221:
222: uname_S := $(s...
I have a bare repository initialize on my webserver.
I code on my workstation and I'm able to push/pull/commit changes to it.
Now, I want to deploy this code on the webserver but into my apache directory (/var/www/html).
If I wanted to track the changes (only pull no push) from this directory, should I clone the repo first?
This way I c...
I want to start testing the JavaScript in my Rails apps with qUnit and I'm wondering how to keep the test JavaScript and test runner HTML page under version control (I'm using Git, of course) but keep them off the production server when I deploy the app with Capistrano. My first thought is to let Capistrano send all the code over as usua...
Hi,
I create a working repository in HG.
And I have modified some files.
How can i move my all my modification to a branch (a branch that I have not created)?
(kind of 'git stash' and the move the stash away change to a branch. Actually, I am not sure how I can do that in git either. If you know, I appreciate if you can tell me in git...
We use TeamCity for continuous integration and Git for source control. Generally it works pretty well - convenient, modern and good us quick feedback when tests fails.
There is a strange behavior related to Git merge specifics. Here are steps of the case:
First developer pulls from master repo.
Second developer pulls from master repo....
At my workplace we have a "master" trunk branch that represents published code. To make a change, I check out a working copy, create a topic branch, commit to the topic branch, merge the topic branch into master, and push.
For small changes, I might commit directly to master, then push.
My problem is that when I use "git log", I don't...
I am currently working with a subversion repository but I am using git to work locally on my machine. It makes work much easier, but it also makes some of the bad behavior going on in the subversion repo quite glaring and that creates problems for me.
There is a somewhat complex local build process after pulling down the code and it cr...
I would like to be able to switch between various android releases (1.0, 1.5, 2.0, etc.) and then access them via the file system to copy all files for that version into a tarball. Currently I am just running repo init -u <source URL> -b release-1. to get each version (changing the tag for each version I need).
If this was a single git,...
Hi All,
I am working on a rake utility and want to implement something mentioned below:
There are some shell commands in a sequence in my Rake file. What I want is that the sequence should wait for the previous command to finish processing before it moves to the next one.
sh "git commit -m \"#{args.commit_message}\"" do |ok, res|
# ...
I have a git bare repo that I manage and I want to have git auto create tracking branches for all the remote branches. That way no one has to auto create them.
I tried to do it in a post fetch hook, but couldn't get it working.
...
Hi,
I am trying to merge 2 commits into 1. So I follow this:
http://www.gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
I did
$ git rebase --interactive HEAD~2
It opens an editor
I change 'pick' to 'squash'
Save the editor
But i get 'Cannot 'squash' without a previous commit'
so what can I do to recover?
When I d...
I'm trying to contribute to open source software for the first time, but I'm pretty inexperienced with version control systems. In particular, right now I want to make a number of changes to different parts of the code, but I'm not sure if the maintainer would want to integrate all of them into the master repository. However, the changes...
Working SVN repo
I'm starting a git repo to interact with a svn repo. The svn repository is set and working fine, with a single commit of a basic README file in it.
Checking it out works fine:
tchalvak:~/test/svn-test$
svn checkout --username=myUsernameHere http://www.url.to/project/here/charityweb/
A charityweb/README
Checked ou...
I need to push my rails code into stating environment from github. And then deploy this app into engineyard in staging environment. Could some please give me step I need follow
...