Why does Git treat this text file as a binary file?

I wonder why git tells me this:? $ git diff MyFile.txt diff –git a/MyFile.txt b/MyFile.txt index d41a4f3..15dcfa2 100644 Binary files a/MyFile.txt and b/MyFile.txt differ Aren’t they text files? I have checked the .gitattributes and it is empty. Why I am getting this message? I cannot get diffs as I use to anymore ADDED: I’ve noticed […]

Unable to track files within Git submodules

Problem: to add files at ./shells/smallApps/* to Git at ./.git/ when I do not have the files at ./.git/info/exclude nor at any .gitignore -files. This question is based on this tread where the problem is not solved completely. I run $git status ~/bin # On branch master nothing to commit (working directory clean) $git ls-files […]

Show git ahead and behind info for all branches, including remotes

On a github project you can go to a /branches page and se pretty graphs like this one that for each branch show how far behind and how far ahead each branch is with respect to master. Is there a command line tool that does something similar? Something that works with remotes as well? For […]

Git submodule on remote bare

I’ve setup my environment so I can push to a remote bare repository, I used these commands to setup the remote repository: $ mkdir ~/website.git && cd ~/website.git $ git init –bare And $ cat > hooks/post-receive #!/bin/sh GIT_WORK_TREE=/var/www/website git checkout -f $ chmod +x hooks/post-receive And on my local environment: $ git remote add […]

git branch naming best practices

I’ve been using a local git repository interacting with my group’s CVS repository for several months, now. I’ve made an almost neurotic number of branches, most of which have thankfully merged back into my trunk. But naming is starting to become an issue. If I have a task easily named with a simple label, but […]

Is git good with binary files?

Is git good with binary files? If I have a lot of uncompressed files being modified, and many compressed files never (or almost never) modified, would git handle it well? For example, if I insert or remove the middle and insert data near the end it will notice it as it does with text? If […]

List files in local git repo?

I’m using Sparkleshare, which uses Git to sync files between my laptop and my backup server. Now I want to be able to browse in the files and dirs that I’ve uploaded to my server, but I dont know how? I understand that Git uses some sort of special file hierarchy and that I just […]

Git reset –hard and a remote repository

I had a repository that had some bad commits on on it (D, E and F for this example). A-B-C-D-E-F master and origin/master I’ve modified the local repository specifically with a git reset hard. I took a branch before the reset so now I have a repo that looks like: A-B-C master \ D-E-F old_master […]

Can I make fast forwarding be off by default in git?

I can’t really ever think of a time when I would use git merge rather than git rebase and not want to have a commit show up. Is there any way to configure git to have fast forwarding off by default? The fact that there’s an –ff option would seem to imply that there’s a […]

Removing multiple files from a Git repo that have already been deleted from disk

I have a Git repo that I have deleted four files from using rm (not git rm), and my Git status looks like this: # deleted: file1.txt # deleted: file2.txt # deleted: file3.txt # deleted: file4.txt How do I remove these files from Git without having to manually go through and add each file like […]

Git Baby is a git and github fan, let's start git clone.