Linked Questions

1 vote
1 answer
4k views

I have multiple folders in project. Need some folders to ignore in commit. How can I ignore a folder while git push to master.
ahnirab's user avatar
  • 168
0 votes
1 answer
706 views

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 ...
Deviitt1's user avatar
-1 votes
1 answer
575 views

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 ...
Anudocs's user avatar
  • 706
0 votes
0 answers
37 views

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'...
richi's user avatar
  • 1
8601 votes
37 answers
2.7m views

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?
Ivan's user avatar
  • 105k
7 votes
4 answers
30k views

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, ...
dekenzbre's user avatar
  • 115
0 votes
1 answer
2k views

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 ...
ZZTest's user avatar
  • 89
0 votes
3 answers
2k views

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 ...
user avatar
0 votes
2 answers
2k views

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
Jonny's user avatar
  • 903
0 votes
1 answer
2k views

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, ...
Ted's user avatar
  • 93
2 votes
1 answer
1k views

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 ...
Wojtek Wencel's user avatar
0 votes
0 answers
2k views

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 ...
Kynan Pacheco's user avatar
0 votes
1 answer
522 views

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 ...
shwirms's user avatar
  • 11
0 votes
1 answer
504 views

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 ...
Minon Weerasinghe's user avatar
3 votes
0 answers
54 views

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 ...
Simon's user avatar
  • 71