git

git push fatal: Not a git repository: '.'

I can not understand, why 'fatal' is here? And really all commits are pushed. oleg@shoom-gnome:(master)~/workspace/S4$ git push Counting objects: 5, done. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 280 bytes, done. Total 3 (delta 2), reused 0 (delta 0) To ssh://account@host/var/git/S4 79ea0f2..6e8a193 master...

Git: how to make remote directory update when pushed to?

I want to use git to manage some data on a remote server, so I set up a non-bare repository there. I can push to it without problems, and the repository itself updates but the actual files are not changed/added/deleted. I have to ssh into the server and do a git reset --hard HEAD to get the file structure to actually update. What's to...

git when changing the repository

Hi, I am used to pull from a git repository of someone. Today he moved his repository to another address. I wonder if there is some way for me to pull from the new address and to get the info of what changes he made with respect to last time before his moving? What I have done is "git clone newaddress" under my repository pulled from hi...

For a shared git repo served over SSH and HTTPS, how to control access for both protocols?

I'm using hooks/update to control who may update particular refs in a shared repository. This works great for SSH, but I recently discovered (with git-1.6.4.2, at least) this hook does not influence WebDAV pushes, i.e., any user may update any branch. Yes, I could add Require group ... directives as in 8 ways to share your git repositor...

git resolving conflicts question

Hi, I have to solve some conflict after a "git pull". $ git pull CONFLICT (rename/add): Renamed vignette_generator_mashed.h->vision_problem_8.h in 49423dd0d47abe6d839a783b5517bdfd200a202f. vision_problem_8.h added in HEAD Added as vision_problem_8.h~HEAD_1 instead Removed vignette_generator_cross_square.cc Automatic merge failed; fix c...

How can I pass git SHA1 to compiler as definition using cmake?

In a Makefile this would be done with something like: g++ -DGIT_SHA1="`git log -1 | head -n 1`" ... This is very useful, because the binary knows exact commit SHA1 so it can dump it in case of segfault. How can I achieve the same with CMake? ...

cannot create directory at db:migrate

I have repository at github for ruby on rails project. First time i did push from comp. under windows system with msysgit. Then cloned this project from another comp. under ubuntu, did some changes, commited and pushed to repository at github. Now when i try to pull or even clone this repository from my comp. with windwos it results in...

How to split last commit into two in Git

I have two working branches, master and forum and I've just made some modifications in forum branch, that I'd like to cherry-pick into master. But unfortunately, the commit I want to cherry-pick also contains some modifications that I don't want. The solution would probably be to somehow delete the wrong commit and replace it with two s...

Is there a good (visual) Git tool for Mac OS X or Windows?

I'm looking at porting my projects to Git from SVN (I'm convinced that Git is worth the move) and I'm trying to come up with a set of tools to use for the project. I've googled around for some tools but I wasn't really impressed with what I found. What visual tools are recommended for Git users on Mac OS X? What about Windows? (I hav...

How do I backport a commit in git?

So, I have a maintenance branch and a master branch in my project. If I make a commit in the maintenance branch and want to merge it forward to the master branch, that's easy: git checkout master; git merge maintenance But if I want to go the other way around, i.e. apply a commit made to master back to my maintenance branch, how do I ...

The shortest possible output from git log containing author and date

How can I show a git log output with (at least) this information: * author * commit date * change I want it compressed to one line per log entry. What's the shortest possible format for that? (tried --format=oneline but that does not show the date) ...

Git how to save a preset git log --format

I really like the short git log format where I can see author, date and change description like this: git log --pretty=format:"%h%x09%an%x09%ad%x09%s" Which outputs: fbc3503 mads Thu Dec 4 07:43:27 2008 +0000 show mobile if phone is null... ec36490 jesper Wed Nov 26 05:41:37 2008 +0000 Cleanup after [942]: Using timezon...

How to list versioned files in git?

I would like to list the versioned files in the root directory of a git repository. To do the same thing in bazaar, you run: bzr ls --versioned --non-recursive How do I do this in git? ...

Updating a local repository with changes from a Github repository

I've got a project checked locally from github, that remote repo has since had changes made to it. What's the correct command to update my local copy with the latest changes? ...

Strange git-svn history - how do I fix this?

I'm relatively new to git, having used Subversion primarily in the past. I recently cloned a Subversion repository, made changes, then set up a remote bare git repository that fellow developers will use as we move towards git. I haven't pushed changes to the SVN repository yet (at least I haven't intentionally done this!). I tried to pul...

git-completion.bash displays HEAD only.

I put original git-completion.bash (from git tarball) and source it from my ~/bash_profile. When using git branch is shows only HEAD, e.g.: piotr@PiotrMBP ~/Projects/X (master) $ git co HEAD but I have: $ git br -a NSXMLDocument * master origin/HEAD origin/NSXMLDocument origin/master I haven't modified git-completion.ba...

Git equivalents of most common Mercurial commands?

I've been using Mercurial but would like to do a quick demo of Git. What are the Git equivalents of: hg init . # start a project in the current directory hg addremove # look for any added or deleted files hg commit -m "comment" # commit any uncomitted changes hg status # what have i changed since the last commit? ...

Using git (or some other VCS) at your company

Some friends of mine and I were talking recently about version control, and how they were using VSS at their jobs, and were probably going to be moving off of that soon. One of them said that his company will likely be going with Team Foundation Server. Eventually, the conversation did get around to talking about some of the open sourc...

'git clone' with msysGit on Windows not working

I have installed msysGit on several of my computers and only have problems on one particular computer (my main work computer of course). 'git clone' does not work. When I run the clone command on a repository, this occurs: C:\Projects>git clone git://github.com/[user]/[project].git Initialized empty Git repository in C:/Projects/[projec...

Git design decision on storing content rather than differences

Could anyone give me some idea to why git developers made a design decision to store contents of files (blobs), so when the content changes a new blob needs to be created? I believe subversion stores revisions rather than contents, so when the content changes, it simply keeps track of the differences between the two. Couldn't git have d...