Linked Questions

1 vote
1 answer
8k views

If there are 1000 files in my local repository, and I want to commit and push only 700 files, is there a possibility?
Shankar Maraka's user avatar
0 votes
2 answers
2k views

I have a folder in my Git directory that stores information about when my program runs and I don't want this information to keep getting added to the repo. Currently I just avoid selecting files from ...
rwolst's user avatar
  • 13.8k
0 votes
1 answer
3k views

I'm trying to get my .gitignore to ignore everything except my src files in my NetBeans project. My gitignore looks like this nbproject/private/ build/ nbbuild/ dist/ nbdist/ nbactions.xml nb-...
Arhowk's user avatar
  • 931
0 votes
2 answers
2k views

Basically, I don't want my firebase credentials to show up in my github repo. This is what I have done so far. // creds.js const firebaseConfig = { apiKey: "myapikey", authDomain: &...
sabz's user avatar
  • 470
0 votes
1 answer
798 views

I'd like to ignore specific java class from git. So I' posted inside root .gitignore file the full path of my desired class to ignore, but this class is still tracked by git. app/src/main/java/com/...
Choletski's user avatar
  • 7,615
4056 votes
16 answers
1.3m views

I want to remove a file from my repository. git rm file_to_remove.txt will remove the file from the repository, but it will also remove the file from the local file system. How do I remove this file ...
mveerman's user avatar
  • 41.5k
2885 votes
21 answers
994k views

I have an already initialized Git repository that I added a .gitignore file to. How can I refresh the file index so the files I want ignored get ignored?
trobrock's user avatar
  • 47.5k
1423 votes
42 answers
2.1m views

I need to add some rules to my .gitignore file. However, I can't find it in my project folder. Isn't it created automatically by Xcode? If not, what command allows me to create one?
Luca's user avatar
  • 21k
258 votes
10 answers
110k views

Due to external weird constraints I cannot modify the .gitignore of my repository. Is there a way to ignore files and directories other than modifying a .gitignore? Even if it is a global solution ...
Pablo Fernandez's user avatar
105 votes
2 answers
95k views

I've learned how to exclude an entire directory in git (add a line bin/ to .gitignore). And I've learned how to ignore files "after the fact" (i.e. after they have been added to git): git rm --cached ...
WinWin's user avatar
  • 7,793
4 votes
3 answers
1k views

I have a git repository for a server. That server needs some files, but these files only have to be pushed once. So when someone edits it, then it doesn't have to be pushed to github, but when someone ...
RuuddR's user avatar
  • 951
1 vote
3 answers
3k views

I'm working on a .NET project with Visual Studio and it's Git extension. Until recently, the whole bin folder was excluded from version control in the .gitignore file. It is now included because of ...
smcs's user avatar
  • 2,034
2 votes
1 answer
5k views

Below is the image of my project structure: I would like to delete .vs folder, packages folder, .hgignore file and bin and obj directories under Leapfrog.Datafetcher, Leapfrog.Test, and src/...
tRuEsAtM's user avatar
  • 3,751
0 votes
2 answers
2k views

So I'm working on with an api from IsThereAnyDeals and I'm wondering where I should store my API key? Is it possible to store it remotely or is it fine to just store it inside the script?
Dave Cordero's user avatar
0 votes
3 answers
2k views

I check out a branch locally and worked with 2 files, say, their names are A.java and B.java. Then, I add and commit to the commands i.e. git add ., git commit -m "some msg". Eventually, I push them ...
Arefe's user avatar
  • 12.6k

15 30 50 per page