How to delete a cloned file on my MacbookGIT not cloning on FreeBSD?How to setup git repo in order to push as...
How to prevent "they're falling in love" trope
What is a Samsaran Word™?
Implication of namely
Sums of two squares in arithmetic progressions
What exactly is ineptocracy?
Ambiguity in the definition of entropy
Mathematica command that allows it to read my intentions
How do conventional missiles fly?
Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?
Unlock My Phone! February 2018
Fair gambler's ruin problem intuition
Notepad++ delete until colon for every line with replace all
How to stretch the corners of this image so that it looks like a perfect rectangle?
Different meanings of こわい
Bullying boss launched a smear campaign and made me unemployable
Could the museum Saturn V's be refitted for one more flight?
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Should I tell management that I intend to leave due to bad software development practices?
Where would I need my direct neural interface to be implanted?
Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?
In the UK, is it possible to get a referendum by a court decision?
How does a dynamic QR code work?
Finitely generated matrix groups whose eigenvalues are all algebraic
Processor speed limited at 0.4 Ghz
How to delete a cloned file on my Macbook
GIT not cloning on FreeBSD?How to setup git repo in order to push as currently the remote reject it?Master does not appear to be a git repository errorUnable to clone bare repository with Gitgit clone replicates submodules, but they are not repos anymoreUnderstanding implications of sudo -u -HOpening an existing Tower git repo from the command lineGitlab 7.10 install doesn't create proper ssh git user config?Git clone to home directory with PowershellGit is considering my whole user folder as a repository
I cloned a repo from Gitlab into my Macbook using the git clone URL command. After that, I deleted the folder of the cloned repo on my Macbook by putting the folder into the trash bin and emptying it. However, when I enter the command ls -a on my Macbook, I can still see it. I'm still new to Git so I have no idea what I'm doing. May I know if there's a way for me to see that folder again or delete it permanently?
git
New contributor
add a comment |
I cloned a repo from Gitlab into my Macbook using the git clone URL command. After that, I deleted the folder of the cloned repo on my Macbook by putting the folder into the trash bin and emptying it. However, when I enter the command ls -a on my Macbook, I can still see it. I'm still new to Git so I have no idea what I'm doing. May I know if there's a way for me to see that folder again or delete it permanently?
git
New contributor
add a comment |
I cloned a repo from Gitlab into my Macbook using the git clone URL command. After that, I deleted the folder of the cloned repo on my Macbook by putting the folder into the trash bin and emptying it. However, when I enter the command ls -a on my Macbook, I can still see it. I'm still new to Git so I have no idea what I'm doing. May I know if there's a way for me to see that folder again or delete it permanently?
git
New contributor
I cloned a repo from Gitlab into my Macbook using the git clone URL command. After that, I deleted the folder of the cloned repo on my Macbook by putting the folder into the trash bin and emptying it. However, when I enter the command ls -a on my Macbook, I can still see it. I'm still new to Git so I have no idea what I'm doing. May I know if there's a way for me to see that folder again or delete it permanently?
git
git
New contributor
New contributor
New contributor
asked 27 mins ago
meromero25meromero25
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can delete directories and their contents from the Terminal using rm -R directoryname
Because it is a git repo, you probably would want to add -f
to suppress warnings because commits are stored as write-protected files if I remember correctly. However, be very careful when dealing with files on the command line because it’s possible to delete things you didn’t want to. You could also make sure this is the repository that you downloaded by ls directoryname
to see the contents before deleting it. It’s possible that the reason that you can’t see this file in Finder is because it somehow got hidden. To (possibly) reverse this, you can use Shift-Command-. (in a finder window in the folder that it was cloned into) to show hidden files.
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
meromero25 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1420696%2fhow-to-delete-a-cloned-file-on-my-macbook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can delete directories and their contents from the Terminal using rm -R directoryname
Because it is a git repo, you probably would want to add -f
to suppress warnings because commits are stored as write-protected files if I remember correctly. However, be very careful when dealing with files on the command line because it’s possible to delete things you didn’t want to. You could also make sure this is the repository that you downloaded by ls directoryname
to see the contents before deleting it. It’s possible that the reason that you can’t see this file in Finder is because it somehow got hidden. To (possibly) reverse this, you can use Shift-Command-. (in a finder window in the folder that it was cloned into) to show hidden files.
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
add a comment |
You can delete directories and their contents from the Terminal using rm -R directoryname
Because it is a git repo, you probably would want to add -f
to suppress warnings because commits are stored as write-protected files if I remember correctly. However, be very careful when dealing with files on the command line because it’s possible to delete things you didn’t want to. You could also make sure this is the repository that you downloaded by ls directoryname
to see the contents before deleting it. It’s possible that the reason that you can’t see this file in Finder is because it somehow got hidden. To (possibly) reverse this, you can use Shift-Command-. (in a finder window in the folder that it was cloned into) to show hidden files.
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
add a comment |
You can delete directories and their contents from the Terminal using rm -R directoryname
Because it is a git repo, you probably would want to add -f
to suppress warnings because commits are stored as write-protected files if I remember correctly. However, be very careful when dealing with files on the command line because it’s possible to delete things you didn’t want to. You could also make sure this is the repository that you downloaded by ls directoryname
to see the contents before deleting it. It’s possible that the reason that you can’t see this file in Finder is because it somehow got hidden. To (possibly) reverse this, you can use Shift-Command-. (in a finder window in the folder that it was cloned into) to show hidden files.
You can delete directories and their contents from the Terminal using rm -R directoryname
Because it is a git repo, you probably would want to add -f
to suppress warnings because commits are stored as write-protected files if I remember correctly. However, be very careful when dealing with files on the command line because it’s possible to delete things you didn’t want to. You could also make sure this is the repository that you downloaded by ls directoryname
to see the contents before deleting it. It’s possible that the reason that you can’t see this file in Finder is because it somehow got hidden. To (possibly) reverse this, you can use Shift-Command-. (in a finder window in the folder that it was cloned into) to show hidden files.
answered 17 mins ago
Kevin RockwellKevin Rockwell
886
886
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
add a comment |
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
Okay, I'll give it a try. Thank you!
– meromero25
14 mins ago
add a comment |
meromero25 is a new contributor. Be nice, and check out our Code of Conduct.
meromero25 is a new contributor. Be nice, and check out our Code of Conduct.
meromero25 is a new contributor. Be nice, and check out our Code of Conduct.
meromero25 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1420696%2fhow-to-delete-a-cloned-file-on-my-macbook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown