I am not great at Git. I do not understand it. I am using the Git instructions to make a portfolio repo. I made one and pushed my index.html file. When I checked GitHub I had random files from my computer. I erased the repo and tried to start over. It keeps adding random files. How do I fix this? What does this mean?
Your branch is ahead of ‘origin/master’ by 1 commit.
(use “git push” to publish your local commits)
Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: Library/Caches/CloudKit/com.apple.Safari/6f95fd8e1f6c500d45050ef211612410ee8c4054/Records/Records.db modified: Library/Caches/CloudKit/com.apple.Safari/6f95fd8e1f6c500d45050ef211612410ee8c4054/Records/Records.db-shm modified: Library/Caches/CloudKit/com.apple.Safari/6f95fd8e1f6c500d45050ef211612410ee8c4054/Records/pcs.db-wal modified: Library/Caches/com.apple.parsecd/session.472 modified: Library/Containers/com.microsoft.Word/Data/Library/Caches/Microsoft/uls/com.microsoft.Word/logs/Daphnie’s MacBook Pro-20170530-2005.log modified: Library/Cookies/HSTS.plist modified: Library/Group Containers/UBF8T346G9.Office/MicrosoftRegistrationDB.reg modified: Library/Safari/History.db-wal modified: Library/Safari/LastSession.plist modified: Library/Saved Application State/com.apple.Safari.savedState/data.data modified: Library/Saved Application State/com.apple.Safari.savedState/windows.plist modified: Library/Saved Application State/com.apple.Terminal.savedState/data.data modified: Library/Saved Application State/com.apple.Terminal.savedState/window_2.data modified: Library/Saved Application State/com.apple.Terminal.savedState/windows.plist modified: Library/com.apple.nsurlsessiond/E8C9768780A371F36651AB699D884E881706B377/2B464929B8F5FA869AA02198352C02468A441A46/tasks.plist modified: daphnied.github.io (untracked content) modified: freecodecamp (modified content) modified: ruby (untracked content) modified: ruby-challenges (untracked content)
(use “git add …” to include in what will be committed)
Library/Saved Application State/com.apple.Safari.savedState/window_2.data
It took 2.93 seconds to enumerate untracked files. 'status -uno’
may speed it up, but you have to be careful not to forget to add
new files yourself (see ‘git help status’).
no changes added to commit (use “git add” and/or “git commit -a”)
Daphnies-MBP:~ daphniedonnell$ git add .
Daphnies-MBP:~ daphniedonnell$ git commit -m “initial commit”
[master a1511a0] initial commit
21 files changed, 37 insertions(+)
delete mode 100644 Library/Group Containers/UBF8T346G9.Office/lck257b5d264afbbb93
delete mode 100644 Library/Group Containers/UBF8T346G9.Office/lck82e50a35be3d2e17
delete mode 100644 Library/Group Containers/UBF8T346G9.Office/lckb42f6ce6157f02be
delete mode 100644 Library/Group Containers/UBF8T346G9.Office/lckc555ad95d02c5687
rewrite Library/Safari/LastSession.plist (98%)
create mode 100644 Library/Saved Application State/com.apple.Safari.savedState/window_2.data
rewrite Library/Saved Application State/com.apple.Safari.savedState/windows.plist (75%)
rewrite Library/Saved Application State/com.apple.Terminal.savedState/data.data (87%)
rewrite Library/Saved Application State/com.apple.Terminal.savedState/window_2.data (97%)
rewrite Library/com.apple.nsurlsessiond/E8C9768780A371F36651AB699D884E881706B377/2B464929B8F5FA869AA02198352C02468A441A46/tasks.plist (60%)
Daphnies-MBP:~ daphniedonnell$ git remote add origin firstname.lastname@example.org:daphnied/My-Portfolio.git
fatal: remote origin already exists.
Daphnies-MBP:~ daphniedonnell$ git push -u origin master
Enter passphrase for key ‘/Users/daphniedonnell/.ssh/id_rsa’:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.