I've been playing around with different versioning systems to find one I'm comfortable with. I started with SVN (lets call this version of the project "f1"), then changed over to GIT. But I didn't know how to convert the old SVN repo to GIT, so I just copied the folder, deleted the .svn stuff, and turned it into a GIT repo (lets call thi...
I Just think that I could actually contribute code much faster if I didn't have to learn what is an almost entirely other subject.
...
I'm using egg (emacs got git) as git interface in emacs.
Whenever I try to achieve a commit --amend, I receive a "GIT-COMMIT-AMEND> Aborting commit due to empty commit message".
This is what i do:
C-u C-x v c
Then the commit buffer appears, with the message of my previous commit.
Then upon C-c C-c I get the message stated above: emp...
Hi everyone,
I am setting up a github account, to work on a small project with some friends.
I would like to have my home machine able to do a git pull via php, so that we just have to call this small php file for the machine to be up to date.
As of right now :
<?php
$output = shell_exec('git help');
echo "<pre>$output</pre>";
?>
T...
I am newbie with git. It tried this tutorial, but after the command, i get this error:
[root@WL-0022150E7BD4 alma]$ git diff --cached
fatal: No HEAD commit to compare with (yet)
I created two file in the current directory. I dont understand, it is the first step in the tutorial.
...
I have a branch called experiment.
git checkout master
echo 'some changes' > a.txt
# now master branch has local changes which are not committed
git checkout experiment
Sometimes I have noticed that I am not allowed to switch to another branch if I have local changes. And sometimes I am allowed to switch to another branch if I have l...
Coming from CVS, we have a policy that commit messages should be tagged with a bug number (simple suffix "... [9999]"). A CVS script checks this during commits and rejects the commit if the message does not conform.
The git hook commit-msg does this on the developer side but we find it helpful to have automated systems check and remind ...
git-cherry lets me find all the commits missing from upstream. How do I find all the commits that are there in local lab branch but not in local master branch.
git branch -d lab
Above operation fails because I have some commits not merged. I want the list of those commits that are not merged.
...
Imagine a solution in Visual Studio 2008 that consists of three projects. Two of them are file-system wise located under the solution home directory and a third one that has been added via Add Existing project from a location outside the solution.
The first two projects are part of the git repository covering the solution directory whi...
This is a question that's been bothering me for a while. I've done my homework and checked stackoverflow and found at least these two topics about my question:
Git for Mercurial like git-svn and
Git interoperability with a Mercurial repository
I've done some serious googling to solve this issue, but so far with no luck. I've also read t...
First, let me say I'm not a professional programmer, but an engineer who had a need for it and had to learn. I was always working alone, so it was just me and my seven split personalities ... and we worked okey as a team :) Most of my stuff is done in C/Fortran/Matlab and so far I've been learning git to manage it all. However, although ...
I'm pretty sure I saw somewhere in a popular Git project the branches had a pattern like "feature/xyz".
However when I try to create a branch with the slash character, I get an error:
$ git branch labs/feature
error: unable to resolve reference refs/heads/labs/feature: Not a directory
fatal: Failed to lock ref for update: Not a directo...
Is there any easy way to calculate the number of lines changed between two commits in git? I know I can do a git diff, and count the lines, but this seems tedious. I'd also like to know how I can do this, including only my own commits in the linecounts.
...
We have the git bare repository in unix that has files with same name that differs only in cases.
Example:
GRANT.sql
grant.sql
When we clone the bare repository from unix in to a windows box, git status detects the file as modified. The working tree is loaded only with grant.sql, but git status compares grant.sql and GRANT.sql and sh...
I'm starting to do a small amount of development within my company. I'm intending to use Git for version control, and I'm interested to see what guidelines or standards people are using around version in their groups, similar to coding standards are often written within the group for the group.
I'm assuming there will be things like;
...
This is a little hard to explain with text, but I'll do my best, and you try to keep up; if something isn't clear at first, don't hesitate to ask, and I'll try to clarify.
When TortoiseGit has one branch it looks approximately like this:
o
|
o <-- a commit sign
|
x
When I split my work into a new branch, it looks like this:
o
|
o-...
If I make a simple diff in git with e.g.:
git diff origin/master
where can I find good references on how to read the output of git. The man page on git-diff is rather long, and explains many cases which are maybe not necessary for a start.
...
What is the common way of dealing with the development.sqlite3 files with VCS (in particular, git)?
If I commit this file to the VCS, will it be merged with another developer's copy?
Or should each developer run the db:migrate task each time a new migration file is created?
...
I made 5 commits to Master branch when bug hunting on a private project and pushed them to the remote origin (my own private vps).
Then I saw that commits 4 and 5 were going to cause trouble elsewhere and I need to undo them, so I checked out commit 3 again, made a new branch "Dev" from that point, and did a few more commits fixing the ...
There seems to be a difference between the last commit, the HEAD and the state of the file I can see in my directory.
What is HEAD, what can I do with it and what mistake should I avoid?
...