I am new to Git, and every time I work with it, I always get this annoying .DS_Store in my untracked files. I am assuming that is where my working directory is.   I have tried searching the answer on Stack Overflow, but only found the answer on how to remove it from the repository, not from the list of untracked files.  How can I tell Git to completely ignore .DS_Store files and never list them as untracked files?
67235
How can I remove those annoying Mac OS X .DS_Store files from a Git repository?
2425
I need to exclude .git from my find search. To achive that, I am using the -path ./.git -prune switch:  $ find . -path ./.git -prune -o \( -type f -o -type l -o -type d \) | grep '.git' ./.git   However, even though this skips the contents of the .git directory, it lists the directory itself. It works when I add -path ./.git -prune -o -print -a  find . -path ./.git -prune -o -print -a \( -type f -o -type l -o -type d \) | grep '.git'   Why is this necessary. I thought that both commands should have same output. The second syntax is quite ugly.
4879
I have a git repository with 2 branches: master and test.  There are differences between master and test branches.  Both branches have all changes committed.  If I do:   git checkout master git diff test   A screen full of changes appears showing the differences. I want to merge the changes in the test branch and so do:  git merge test  But get the message "Already up-to-date"  However, examining files under each different branch clearly shows differences.  What's the problem here and how do I resolve it?
68855
I've moved a file manually and then I've modified it. According to Git, it is a new file and a removed file. Is there any way to force Git into treating it as a file move?
21130
At work we're letting one of our very tech savvy clients actually help out a little with a few development projects specific to him. However, he uses his own personal Macbook, and as he edits files on our (Windows) networks, his Macbook always creates a bunch of unnecessary meta files that we end up deleting later.  For instance, it creates a file called .DS_Store in any directory he opens, as well as "dot underscore" files for each file he edits. So for instance, if he's editing a file called "Main.php", his Macbook will create another file called "._Main.php".  I know  to , but none about how to prevent creation of these hidden files prefixed with dot underscore.  Is there any way to turn that off on Macs? Any way to prevent it from creating those files in the first place?
60052
If I'm installing from source, do I need to keep the extracted tarball directory?  So if I download the git tarball. I then do:  tar -xvzf git.tar.gz   This will create a git.x.x. directory, into which I cd, then run ./configure etc. Once I'm done with this process, and git, or whatever is installed, do I need to keep the original git.x.x extracted directory, or is that just used for compiling the program?  I'm somewhat confused by all the directories, and folders used for programs.
68424
After starting Ubuntu, I see the following lines. Should I be worried?  /dev/sda6: recovering journal /dev/sda6: clean, 355773/1835008 files, 470404803/7335680 blocks
26367
Which files should I include in .gitignore when using Git in conjunction with Xcode?
104832
Why does ls .* print out the contents of the hidden directories? I want to print just the hidden files, and now see that   is a solution to this, yet I sill want to understand why the contents of the directories are shown. The contents of further nested directories are not shown.  Below is a partial output of ls .* in my home directory.  .bash_history .bash_profile .bashrc .coin_history .emacs .gitconfig .gitignore_global .grasp_jss  .ssh: config          github_rsa.pub  id_rsa.pub      known_hosts.old github_rsa      id_rsa          known_hosts     lambda.pem  .vim: colors   ftdetect syntax   This machine is running RHEL. Similar behavior observed on Mac OSX.
51665
I was surprised recently when I did something like mv ./* ../somedirectory and found that files like .gitignore were not moved.  I do most of my work in zsh on OS X, and this surprise bit me in bash on CentOS.  I tried bash on OS X and found the same behavior: * does not match dot files.  This seems very undesirable to me, but apparently it's the bash default.  (It may be the zsh default too for all I remember, but I may have changed it years ago in my .zshrc and forgotten it ever worked differently.)  How can I configure bash to behave as I expected: for * to match all files, and not ignore dot files.  In case this is at all unclear, here's how to reproduce it    cd /tmp mkdir {t,d}est touch test/{.,}{1,2,3,4,5,6,7} ls -hal test mv test/* dest ls -hal test     # notice dot files are still there ls -hal dest     # notice only some files were mv'ed
92410
Recently I uninstalled some software using sudo apt-get --purge autoremove, thinking that this would remove all traces of it including unused dependencies and configuration files. However I discovered that a configuration file was left behind in my home folder.  Is there a more powerful command which would remove even that?   Also, is it safe to delete the hidden files and folders under home, if they are merely configuration files, or are there other kinds of files?
18966
I want to use version control for config files in Ubuntu server.    But I found it's not easy to simply use git for the whole /etc directory, because many files don't need to be tracked and sometimes the system will write to files like logs which should be ignored.    Is there an application that can do this and make it easy? If it is based on git that is better.
110462
I try to delete Action.005 permanently.    But I don't know how. If I click on the X    then it is still in the list.    I already researched without success, I even managed to loose all my animations by attempting to apply a fix, so I want to be cautious now... How can I do this?
28815
I am moving a website from one server to another and Git does not store metadata such as file permissions. I need to find the directories and files that are not 775 / 664 respectively.  Right now, I'm using this cobbled-together contraption:  $ find . -type d -exec ls -la {} \; | grep ^d | grep -v ^drwxrwxr-x $ find . -type f -exec ls -la {} \; | grep -v ^d | grep -v ^-rw-rw-r-- | grep -v '.git'   Though this works, I feel it is rather hacky. Is there a better way to do this, perhaps a canonical way, or should I just be hacky?  This is running on a recent Ubuntu version with GNU tools under Bash.
27858
I frequently use git stash and git stash pop to save and restore changes in my working tree. Yesterday I had some changes in my working tree that I had stashed and popped, and then I made more changes to my working tree. I'd like to go back and review yesterday's stashed changes, but git stash pop appears to remove all references to the associated commit.  I know that if I use git stash then .git/refs/stash contains the reference of the commit used to create the stash. And .git/logs/refs/stash contains the whole stash. But those references are gone after git stash pop. I know that the commit is still in my repository somewhere, but I don't know what it was.  Is there an easy way to recover yesterday's stash commit reference?  Note that this isn't critical for me today because I have daily backups and can go back to yesterday's working tree to get my changes. I'm asking because there must be an easier way!
74364
I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality?
69200
Executing the command git clone git@github.com:whatever creates a directory in my current folder named whatever, and drops the contents of the Git repository into that folder:  /httpdocs/whatever/public   My problem is that I need the contents of the Git repository cloned into my current directory so that they appear in the proper location for the web server:  /httpdocs/public   I know how to move the files after I've cloned the repository, but this seems to break Git, and I'd like to be able to update just by calling git pull. How can I do this?