Linked Questions

797 votes
6 answers
847k views

How can I clear my working directory in Git?
Hans Sjunnesson's user avatar
205 votes
8 answers
199k views

I'm working on a branch, say "experimental", which I branch out from my master branch. Then, I generate a user model in the experimental branch, but don't add them to the index yet. What do ...
Sarun Sermsuwan's user avatar
66 votes
2 answers
29k views

Possible Duplicate: How do you remove untracked files from your git working copy? Is it possible to tell git to remove untracked files? Mainly something that is similar to a reset? example: git ...
zmk110's user avatar
  • 902
13 votes
2 answers
6k views

this should be simple but i cant find the right anwer I am new to git I added a bunch of new files (not staged) to my git tree i want to just delete them without also deleting the git ignore files in ...
Yehuda Schwartz's user avatar
5 votes
1 answer
3k views

So I added a bunch of images to my project that has git enabled. I then renamed all the images in Xcode. Now whenever I select commit, these files with the old file name pop up with a question mark. ...
Victor Engel's user avatar
  • 2,135
12 votes
1 answer
542 views

I'm currently trying to learn using Git within my workflow and I'd like to ask somethings how I could do them more easily. I usually create different braches in order to do some thing and see if ...
ltdev's user avatar
  • 4,547
-1 votes
1 answer
1k views

I have a repo where I kept my source code. I have cloned and built and run, and I am trying to remove file which is unversioned but unable to delete. I have tried with the below command git clean -n -...
MARSH's user avatar
  • 331
9 votes
1 answer
289 views

From time to time I have untracked files in my git repository and I'd like to delete them. Is there an easy way to do so using git or bash or even another way?
thitemple's user avatar
  • 6,067
1 vote
1 answer
619 views

I'm just learning how to use Git, and somehow by mistake I've patched files and couldn't figure out how to remove them. When I type $ git status it shows me the patched files which I don't want. I've ...
Saud Alghamdi's user avatar
0 votes
1 answer
415 views

Basically when fiddling with a git repo of a project, I got lost in what exactly is happening, why some files are the way they are and how it all ties together. I'd just like to reset the whole repo ...
Straightfw's user avatar
  • 2,231
1 vote
0 answers
181 views

I'd like to reset to a commit and, if there's any new file in my working directory, it should be deleted. That was the behavior I've expected from git reset --hard [<commit>] but it simply ...
Tadeu Moreira's user avatar
-1 votes
1 answer
152 views

As you can see Git command to check status untrack file in my repository. git status i want to remove/ reset those untrack file but git command is not working even i try clean untrack file still ...
Syan's user avatar
  • 137
-1 votes
2 answers
88 views

I would appreciate if you help me in this problem I have with git. I am new with working with that. I need to remove untracked change from git. I have already tried "git checkout ." and &...
Siavosh's user avatar
0 votes
0 answers
17 views

I have a 'Test' folder for trying out things using git which looks like this source ├── src.txt ├── src │ ├── asdfasdfadsfasdf.txt │ ├── src-src.txt.txt i used git clean -f within the folder ...
Pongbao's user avatar
  • 63
-3 votes
1 answer
27 views

I have an untracked directory full of files I want to delete. When I run git clean -n or git clean -f it does not delete the untracked directory of files. How do I delete an untracked directory of ...
Andrew Koper's user avatar
  • 7,341

15 30 50 per page
1
2 3 4 5 6