相关疑难解决方法(0)

如何创建.gitignore文件

我需要在我的.gitignore文件中添加一些规则,但是,我在项目文件夹中找不到它.它不是由Xcode自动创建的吗?如果没有,什么命令允许我创建一个?

git gitignore xcode4.3

1024
推荐指数
28
解决办法
101万
查看次数

如何使用git提交文件?

这些教程都没有帮助!
他们都做了他们只是假设我知道该怎么做的事情.

目前,我的终端窗口以..开头

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       deleted:    httpdocs/newsite/manifest/cache/0a432970ba6491fe65dad60b012e5c95_louloumay2011en-1-4dea3186b7f7b.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0a61b5d7a9e97da78fe602e1ad41edb6_5-4dec7c3d57c80.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0afb6a7716a85d0de46cdd03bb30f75f_fifa_panorama_full_page-01_thu-4dea3d1a0e0f5.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0b3bc9be76a5d3e1e36af4b8dcf98658_free2-4df0e2e08761f.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0b6342913b8e599fac76da452af98ec5_si-feb-2009-1-4dea3d1abcb61.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0b9ddc587340f7744e03c4b2dafacf7f_lou-lou-winter-2009-cover-4dea3d1a9b1a0.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0bf64ff8fc22720b3da20d0730fa6a04_chatelaine-dec-2009-4dea3d18daa30.jpg
#       deleted:    httpdocs/newsite/manifest/cache/0bf664e03eb0a2255b69b02aed85add0_summumfeb2011-2-4dea3188766aa.jpg
Run Code Online (Sandbox Code Playgroud)

但是没有办法知道如何做他们在这里做的事情..
http://learn.github.com/p/normal.html

它只是说

我们只需输入提交消息并退出编辑器.

那是什么意思?!
仅仅因为你写的字根本不意味着它很简单..

当我开始输入它时,确实是"记录"或"插入",并且有大约300个文件,并且它要我用消息替换每一行?!?

救命 ! …

git

74
推荐指数
5
解决办法
13万
查看次数

.gitattributes文件应该在提交中吗?

我们正在开发一个项目,有几个人拥有Mac,我在Windows上运行.我们在换行时遇到了一些问题.

我在GitHub上读到我可以添加这个:

# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
Run Code Online (Sandbox Code Playgroud)

进入.gitattributes

但是我应该将该文件提交给GitHub,以便其他Mac用户获得相同的设置吗?

如果重要,我们正在编码网站.(PHP,JavaScript文件和东西).

为了记录,我是唯一一个拥有Windows的人...所以是的,我该怎么办?

git merge

10
推荐指数
2
解决办法
6874
查看次数

如何在 Windows 10 中创建 .gitignore 文件

我尝试使用以下命令在我的存储库的根目录中创建一个 .gitignore 文件

$ touch .gitginore
Run Code Online (Sandbox Code Playgroud)

在 Git Bash 中。

在此处输入图片说明

但是当我从 Windows 资源管理器查看文件时。它说这是一个文本文件。不应该是那种类型File吗?

在此处输入图片说明

git bash

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×4

bash ×1

gitignore ×1

merge ×1

xcode4.3 ×1