到目前为止,我的屏幕上有以下信息...
nicholas@ubuntu:~$ git add /home/nicholas/Documents
nicholas@ubuntu:~$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .ICEauthority
# .Xauthority
# .audacity-data/
# .bash_history
# .bash_logout
# .bashrc
# .cache/
# .compiz/
# .config/
# .dbus/
# .dmrc
# .dropbox/
# .gconf/
# .gitconfig
# .goutputstream-ADHZQW
# .goutputstream-GWSJRW
# .gstreamer-0.10/
# .gtk-bookmarks
# .kde/
# .local/
# .mission-control/
# .mozilla/
# .pki/
# .profile
# .pulse-cookie
# .pulse/
# .signon/
# .thunderbird/
# .xsession-errors
# .xsession-errors.old
# Desktop/
# Downloads/
# Dropbox/
# Pictures/
# Ubuntu One/
# examples.desktop
# git status我想我只是从我的文档目录中添加了文件,其中不仅包括来自libre office的.odt文件,还包括一个包含许多我想要推送到github的文件的“官方网站”目录。据我所知,从跳转开始,我没有添加任何内容,我的状态似乎表明我什么都没有做,即使我遵循了两个引用……一个这样的引用是... http://git-scm.com/book/en/Getting-Started-Installing-Git ...另一个这样的引用是... http://www.codeschool.com/courses/try-git ..。我在大约15分钟内完成了代码学校的git教程,没有任何问题,并且进行得很好,但在现实世界中,事情并不是那么顺利……有人能在Git上教我一点吗,帮我把我的网站和从libre office到我的github存储库的写作概要添加到我的github存储库,这样我就可以开始我作为git中心爱好者的旅程了……任何帮助都将不胜感激..。我期待着您的回音。
发布于 2013-01-28 15:25:31
在这里,你似乎已经在你的主目录中做了一个"git init“。
如果要开始跟踪Git中的现有项目,则需要转到该项目的目录
cd /path/to/directory/with/existing/source/code
$ git init
$ git add .
$ git status你可能会用到这个链接。http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository#Initializing-a-Repository-in-an-Existing-Directory
https://stackoverflow.com/questions/14557150
复制相似问题