我初始化了一个Git仓库,以便添加Oracle Weblogic服务器的本地实例(是的!)并使用Git进行版本控制。
Oracle文件位于c:\ Oracle中。因此,我需要将其添加到Git中。
我执行了以下命令
git init(在c:\中有Oracle目录)
在c:\中添加.gitignore目录,并忽略除Oracle之外的所有目录
然后运行'git status'查看状态。正如预期的那样,它显示了以下内容
C:\>git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# Oracle/
nothing added to commit but untracked files present (use "git add" to track)
现在,我运行了 git add * 命令。如预期的那样,它输出了一些详细信息,显示正在被添加的文件,并以以下内容结束(下面是命令输出的结尾部分)。
....
base_domain/servers/AdminServer/tmp/.appmergegen_1387484701373_liferay-portal-6.
1.30-ee-ga3-20130812170130063.war/html/VAADIN/themes/runo/tree/tree.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Oracle/Middleware/user_projects/domains/
base_domain/servers/AdminServer/tmp/.appmergegen_1387484701373_liferay-portal-6.
1.30-ee-ga3-20130812170130063.war/html/VAADIN/themes/runo/window/window.css.
The file will have its original line endings in your working directory.
fatal: unable to stat 'Oracle/Middleware/user_projects/domains/base_domain/serve
rs/AdminServer/tmp/.appmergegen_1387484701373_liferay-portal-6.1.30-ee-ga3-20130
812170130063.war/html/VAADIN/widgetsets/com.vaadin.portal.gwt.PortalDefaultWidge
tSet/043D1FB3F694D0D6D3ACFB33DB80E43D.cache.html': Filename too long
然后我执行了 git status 命令,查看文件是否已添加
C:\>git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# Oracle/
nothing added to commit but untracked files present (use "git add" to track)
看起来好像没有添加任何东西。该文件夹是否对Git来说太大了?
我尝试过Bazaar,但每当我使用该代码库时,其GUI控件会冻结。现在我正在尝试Mercurial以查看它是否能处理。
C:\
创建存储库并忽略一堆东西,而不是直接在C:\Oracle\
中创建存储库呢? - Chris