Tag: gitignore

How to git ignore ipython notebook checkpoints anywhere in repository

This is mostly a git question. I want to commit my ipython notebooks but gitignore the checkpoints. The repo has multiple folders which each have ipython notebooks, therefore just ignoring a single directory does not solve it. I want to keep adding new folders with notebooks inside without worrying about it. My hunch is that […]

What .gitignore I should use with QT projects? (QT Creator)

So, after little thinking I have wrote the following: # In repository we don’t need to have: # Compiled object files *.o # Generated MOC, resource and UI files moc_*.cpp qrc_*.cpp ui_*.h # Debug and Release directories (created under Windows, not Linux) Debug/ Release/ # .log files (usually created by QtTest – thanks to VestniK) […]

.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory

I have a C# Visual Studio project in a git repository. I want to ignore the contents bin/Debug directory but not the contents of the bin/Release‘ directory. I’ve added bin/Debug to my .gitignore file, but it doesn’t seem to work – it is including the entire contents of the bin directory. What would the correct […]

Interconversion of gitignore and hgignore?

I’m just starting to use hg-git to push some mercurial repositories to github, and I’m realizing that if people check them out using git, they’ll need a .gitignore file in the repository. Is there any automated way to convert hgignore to gitignore or vice versa?

gitignore: Understanding “hello/” vs. “hello/*”

hello/ ignores all folders named “hello” anywhere in my folder structure hello/* only ignores the folder “hello” at the top-level. Why is this? Please point to a passage in http://git-scm.com/docs/gitignore that explains this behavior.

how to add files/folders to gitignore in intellij GUI?

I try to switch from eclipse to intellij. I have a project that uses git and I want to quickly add files to .gitignore. in eclipse i has right click on a file/dir and option ‘add to .gitignore’. is there anything like this in idea or do i have to edit the file manually?

.gitignore a folder content

Possible Duplicate: Ignoring directories in Git repos on Windows My web app has the following directory layout: myapp/ .gitignore .git/ … static/ mytest.txt fgs.ico ledgerware/ static/ mytest.txt fgs.ico … I’d like to edit existing myapp/.gitignore file so that when git push it ignores all files inside myapp/ledgerware/static folder, but NOT myapp/static folder. Can someone help […]

Issue with ignoring subdirectory in git

I have a maven multi-modules project which has a depth of around 5 levels. I’m now moving to git and I see that a lot of the content of the target folder is captured by git as “Unstaged Changes”. I’ve googled a lot and searched SO but couldn’t find an answer as to how to […]

How to undo git update-index?

I just did the following to to keep a different copy of my config.php file in my localhost vs. my production environment: $ git update-index –assume-unchanged application/config/config.php Unfortunately, I didn’t write the config.php file exactly as I should and I need to reverse this such that I can make the change, commit it, and then […]

Why is visual studio committing files in my .gitignore file?

I’m using Visual Studio 2013 Express using Git on a project. I created my repository and copied the project files into it from another directory. I then checked my .gitignore and .gitattributes files. .gitignore was pre-configured and looked to cover everything I needed to ignore for commits at this point. I selected the Changes tab […]

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