gpt4 book ai didi

eclipse - java eclipse 项目的 .gitignore 文件

转载 作者:IT王子 更新时间:2023-10-29 00:53:51 25 4
gpt4 key购买 nike

我有一个使用 Eclipse IDE 的 java 项目。

Eclipse 工作区指向这个目录:

/home/srvimgprd/BUSPROJ/code_development/dime/executables/clientcode/java_axis/Eclipse

我在工作区目录“Eclipse”中放置了一个.gitignore 文件。见下文。

我需要做的是能够将项目从 Eclipse 目录下载到一台新机器上,然后顺利编译。

有没有具体的步骤来完成这个任务?使用下面的 .gitignore 文件时,目标机器上没有显示任何内容。


ECLIPSE 目录的内容(在 机器上):/home/srvimgprd/BUSPROJ/code_development/dime/executables/clientcode/java_axis/Eclipse


java_axis/Eclipse> ls -lart
total 48
drwxr-xr-x 2 imgdev development 4096 2013-09-09 04:53 RemoteSystemsTempFiles
drwxr-xr-x 4 imgdev development 4096 2013-09-09 04:55 Servers
drwxr-xr-x 4 imgdev development 4096 2013-09-09 04:58 .metadata
drwxr-xr-x 6 imgdev development 4096 2013-09-09 05:06 Axis2ClientDimeServer
drwxr-xr-x 5 imgdev development 4096 2013-09-10 08:30 ..
-rw-r--r-- 1 imgdev development 307 2013-09-10 08:31 .gitignore
drwxr-xr-x 6 imgdev development 4096 2013-09-10 08:31 .

.gitignore 文件的内容


*target*
*.jar
*.war
*.ear
*.class

# eclipse specific git ignore
*.pydevproject
.project
.metadata
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

最佳答案

将 .gitignore 放在你的主目录中

git status (you will see which files you can commit)
git add -A
git commit -m "message"
git push

关于eclipse - java eclipse 项目的 .gitignore 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18726217/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com