Linked Questions
15 questions linked to/from What is .gitignore?
1
vote
1
answer
4k
views
Github Desktop Ignore Certain Folder [duplicate]
I have multiple folders in project. Need some folders to ignore in commit.
How can I ignore a folder while git push to master.
0
votes
1
answer
706
views
What is the purpose of initializing a GitHub repository with .gitignore? [duplicate]
while I was creating a new repository on Github, I came across this option and I don't know what it is used for. The option is "Git ignore".Git ignore option
I clicked the button and many ...
-1
votes
1
answer
575
views
What is the use of gitignore? [duplicate]
This question is from rest of other question because it asks why .gitignore is useful compared to git commands?
I have recently started using git using command line.
I created a local repo and ...
0
votes
0
answers
37
views
I can't understand how .gitignore works [duplicate]
In the root of my (versioned) project I create a folder with a .sh file inside and a README file. Then with the command git status the output (correctly) was that I've to git add the new files.
I don'...
8601
votes
37
answers
2.7m
views
How do I make Git forget about a file that was tracked, but is now in .gitignore?
I put a file that was previously being tracked by Git onto the .gitignore list. However, the file still shows up in git status after it is edited. How do I force Git to completely forget the file?
7
votes
4
answers
30k
views
Visual Studio Code - Source Control > 10k changes
Im new to programming as well as Git.
When opening a Git repository in Visual Studio Code that I created myself I've noticed my source control panel telling me that there is above 10k changes made, ...
0
votes
1
answer
2k
views
Git init -- Adding only specific files/folders and not all folders/files
I have a folder that I want to create a new git repository and have only specific files added to it via git add.
However, when I do git init with the following code, EVERYTHING ends up in my remote ...
0
votes
3
answers
2k
views
How to use git without pushing sensitive files to GitHub?
For example, I am developing a PHP website with CodeIgniter framework which requires my hashing key to be placed in the Application/config/config.php file. I certainly don't want to push my website's ...
0
votes
2
answers
2k
views
How to avoid a folder being pushed to the git repo
I have a folder and I don't want to push that folder into the git repo when I do git add ., commit and push my work.
Is there a way to avoid that folder getting pushed to the repo?
How can I do that
0
votes
1
answer
2k
views
How do I prevent .gitlab-ci.yml to be deleted when I push code to GitLab with GitKraken?
I am new to GitLab. I have configured .gitlab-ci.yml via the GitLab interface. So .gitlab-ci.yml is not on my local machine. When I now push the code from my local machine to the repository on GitLab, ...
2
votes
1
answer
1k
views
How to set up git for game development with Unity?
I'm starting to work on a project and need to figure out what's the best way to do version control right now. There are a few things I'm not sure about:
What's the best repository hosting service for ...
0
votes
0
answers
2k
views
Clone Git Repository on Apache Server
So I am trying to get an auto-deploy for my current website, I get to the part where I need to clone my repo onto the test server and I run into this problem:
Clone failed because the directory isn't ...
0
votes
1
answer
522
views
Python virtual environment and GitHub
I am building a website currently using a virtual environment. I noticed when I commit things to GitHub that the bar that shows the language usage ratio on GitHub is skewed to the point where the ...
0
votes
1
answer
504
views
GIT - Adding Java EE Full Application to Repository
I'm very new to GIT and I've been trying to add my Java EE application that I'm currently working on to the repository. So I first created a repository on bitbucket and cloned it through my terminal ...
3
votes
0
answers
54
views
Why does GitHub create a .gitignore folder? bug or feature?
I create a new repository (empty) using the GitHub webclient and then add a .gitignore using the Getting Started screen and choose a template.
When I commit the file, it creates the .gitignore file ...