Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-07-2017, 02:25 PM   #1
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 234

Rep: Reputation: Disabled
I staged my home directory

I am trying git now and I did something stupid. I staged my home directory.

Untracked files
[all my files in my home directory]
"nothing added to commit but untracked files present (use "git add" to track)"
How to solve this (and keep my home directory)?
Old 04-07-2017, 04:55 PM   #2
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,839
Blog Entries: 13

Rep: Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894
It is meaningless because as git says, "nothing added to commit but untracked files present", which means it notes that you haven't added your home directory files to the repository, and you are saying you do not intend to do this. Proceed no further with git commands within this directory.

The more advanced version of this is that you can look at git files, visible or hidden (ls -a) and remove those files if you wish. You may also look at those files, but they are likely small and have no information in them.

My further assumption is that the files in your home directory are the same, untouched, as they were before you tried to stage the directory.
Old 04-08-2017, 03:02 AM   #3
LQ Addict
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
simply remove the ~/.git directory.

but, if you don't plan on putting it up on the intrwebz, this could actually be beneficial.
i think you just gave me an idea...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Home Server With Media Files in Home Directory vs. /var/www/music slurt Linux - Server 2 05-11-2014 12:06 PM
User does int getting home directory in root home in ubuntu 10.04 lucid lynx sunrised24 Linux - Server 2 03-07-2012 10:21 AM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 11:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 05:02 PM
Behind the Microsoft-staged scenes JohnBoy Linux - News 3 06-03-2005 03:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration