Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
111 views

I have a curious case with git clean -X. I want to delete all ignored files in a clone, except the .vs folder (which is ignored but should not be deleted). This works with git clean -Xnd -e !.vs - ...
bers's user avatar
  • 6,321
0 votes
1 answer
301 views

I have internal github in our organization. There is a particular git repo where I need to replace a sensitive string from all commits. There are around 2000 commits and the sensitive string is there ...
Arun Krishnan's user avatar
0 votes
0 answers
19 views

please help me i delete all files on my macbook by command ( git clean -fd  ) i dont know what i do all files had deleted i hope you help me i dont have any idea how to fix it the command ( git ...
Ali Nassar's user avatar
0 votes
0 answers
113 views

Please help me! I just f***ed up everything! I was working on a angular crash course project in visual studio and then wanted to commit my changes to git so i first wanted to add my git repo to the ...
Labi's user avatar
  • 1
3 votes
1 answer
1k views

I have a git repository that contains multiple branch that diverged a lot. When I say diverged it means that each branch can contain new folder or submodule and a lot of diffs between files. When you ...
CyDevos's user avatar
  • 441
0 votes
0 answers
3k views

I have accidentally run git clean -df. It removed my files from my current commit, which I had yet to push. Now, in git status, those files are marked with D, which means "deleted". Is there ...
Lucia's user avatar
  • 1
1 vote
2 answers
112 views

Below code I am trying and the output should contain the branch name with x month ago. Any suggestion in this logic would be greatly appreciated. Here the main aim of the code is to fetch list all ...
rowoc's user avatar
  • 249
0 votes
0 answers
442 views

git clean with the -ffxd option does not clean directories called .git - how can I do this? Using git 2.32.0 mkdir myrepo && cd myrepo git init . mkdir src && cd src touch code.cpp git ...
ezekiel's user avatar
  • 554
1 vote
2 answers
899 views

I have a GIT repository in a ~/foo folder. Now, created a bar/ folder there with some contents, under ~/foo/public/bar/. It is correctly recognized by GIT as untracked: ~/foo git status -s ?? public/...
Robo Robok's user avatar
  • 23.1k
1 vote
3 answers
795 views

If I rename some directories, then commit and push to the origin, and later pull from another computer I will find both the old an new directories. In the old directories there will be some ignored ...
Jonatan Öström's user avatar
1 vote
3 answers
2k views

I am cleaning a git repository's pull requests (PR). There was one PR created to merge a branch B, which was later considered deprecated and removed before being merged. As a result, branch B was ...
Ken S's user avatar
  • 365
4 votes
0 answers
6k views

I accidentaly run: git clean -xdf And deleted all the files I needed locally, how can I revert it?
Mati's user avatar
  • 61
0 votes
1 answer
207 views

I was trying to perform git clean for some untracked files. I typed the following, unintentionally right, command: git clean -dn | grep -v <files_to_exclude> | git clean -df Note that the line ...
joker's user avatar
  • 3,832
-1 votes
3 answers
4k views

I have been trying to get rid of the untracked files showing up when I run git status on my Git Bash terminal. This has also affected my whole computer system as I usually see different files as well ...
Micah Shallom 's user avatar
0 votes
0 answers
1k views

I was so stipud run that command git clean -fdx, and lots of my untracked files had been removed. I searched google again and again for any solutions, but it seems there is no way to get back those ...
jaycelimm's user avatar

15 30 50 per page