Tag: gitignore

Gitignore update and updating index

Per the instructions on Github, I’ve added a global gitignore (including the config part) for Visual Studio/ASP.NET development. The remote and local repositories are already in place. How can I: 1) Update the index such that forthcoming updates only considers the new updates based on the global. 2) Remove items that were previously committed to […]

.gitignore pattern format ** doesn't work

I’m trying to ignore some folders in my .gitignore with the specific pattern format /**/ (I found the docs here : http://git-scm.com/docs/gitignore) like this : src/**/Entity/*.php~ But when I do a git status in the terminal, It return to me this: Untracked files: # (use “git add <file>…” to include in what will be committed) […]

.gitignore for all except Jenkins job config files

I’m using this .gitignore in the Jenkins directory: #Ignore everything * #Don’t ignore directories !*/ #Don’t ignore these files !/.gitignore !jobs/*/config.xml !jobs/**/modules**/config.xml But .gitignore files in subfolders aren’t ignored. I want to except only the root .gitignore.

Terminal: how can I paste a file to all the subfolders within a directory?

Basically, I created a .gitignore file with the following content (ignore all the class files but do not .gitignore file): # Ignore files below *.class # but not these files !.gitignore I want to propagate this to all sub-folders or even sub-sub-folders within the directory. I know I can do it in the naive way […]

Git ignoring podfile when gitignore doesn't mention it

My gitignore file says nothing about podfiles. In fact, I can make it empty, and still get the same result – my ‘Podfile’ is being ignored. If i change it’s name to something different, it sees it, but otherwise just ignores it. I’m not sure why.

How to get git to ignore directory on my server?

Let’s say my repo looks like this: myApp public index.html … tests foo.js … I want the tests folder to get pushed to GitHub but NOT to my server. How do I accomplish this? Since I want tests/ to get pushed to GitHub I cannot simply add /tests/* to my .gitignore file. I’ve tried adding […]

Git ignore not ignoring one file, but all files

Here is the content of my .gitignore file # Compiled source # ################### *.com *.class *.dll *.exe *.o *.so # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db #Eclipse/Intellij .classpath .project .settings/ target/ *.iml .idea/ Basically all I want is to ignore the directory .idea and all the content in it. […]

How to get git to stop ignoring one folder

I have a programming project in Visual Studio and i use the Git with it. The Visual Studio automatically generated a .gitignore file in my project’s main folder. This is the part that ignores the bin folder, which contains my compiled project in debug and release folders: # Build results [Dd]ebug/ x64/ build/ [Bb]in/ [Rr]elease/ […]

Example of gitignore file for java

Can you show me example of .gitignore file for java, that consider a lot of different files that are not included(jar, war, classpath, files that IDEA and other IDE generates and so on and on). I mean really big .gitignore. What I currently have is **/target/ /target/ */target/* .classpath .project .settings # Package Files # […]

Git (SourceTree): gitignore already tracked files without deleting from online repository

There are numerous questions about this argument BUT none of them was useful in my case. I’ve pushed my local project to a bitbucket repository, including a config.php file. Now I’ve changed my local copy of the config.php file and I need to keep it different from the bitbucket copy. I updated my gitignore file […]

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