Github桌面应用程序 – 没有要提交的更改,但存在未跟踪的文件。

huangapple go评论56阅读模式
英文:

Github desktop application - Nothing added to commit but untrack files present

问题

这个问题被问过很多次,但我特别想找到一种使用Github桌面应用程序解决的方法。事实上,这是我第一次在Github上发布任何内容,我的朋友推荐我使用桌面应用程序,因为它更容易使用。

当我尝试提交我的文件夹(大约45兆字节)时,我看到了这个消息:

Github桌面应用程序 – 没有要提交的更改,但存在未跟踪的文件。

当我尝试在Github网站上上传时,我被告知文件夹太大。

我该怎么办?我对Git一无所知。

英文:

This question has been asked a lot, but I am specifically looking for a way to solve this with the Github Desktop application. I don't know how to use it, in fact this is my very first time publishing anything to Github, and my friend recommended I used the desktop application because it's easier.

When I upload try to commit my folder (which is about 45 mbs), I am greeted with this message:

Github桌面应用程序 – 没有要提交的更改,但存在未跟踪的文件。

When I try to upload using the Github website, I'm told the folder is too big.

What do I do? I don't understand anything about Git

答案1

得分: 0

我可以看到你是新手在使用git

在你做任何新的提交之前,你需要将文件添加到仓库,你可以将一个文件夹中的所有文件添加到git中。

在终端中打开你的文件夹,如果你使用的是Windows 10或更高版本,你可以右键单击包含文件的文件夹并在其中打开终端,或者在地址栏中输入 cmd

然后使用 git add 命令将文件添加到你的仓库,要添加所有文件,请使用 git add .(包括句号)并按回车键。这将把当前目录中的所有文件添加到Git仓库中。

现在文件已经添加到仓库中,你可以提交它们。为此,请键入 git commit -m "Initial commit"(用你要提交的更改的简要描述替换 "Initial commit")并按回车键。

希望这能解决你所面临的问题,否则请随时在评论中提出任何疑问,我将乐意帮助你。

如果你对git是新手,也可以使用这些资源

英文:

I can see that you're new to using git

Before you make any new commits, you have to add files to the repository, you can add all the files in a folder to git.

Open your folder in the terminal, if you're on Windows 10 or above, you can do the same either by right clicking in the folder containing files and opening the terminal or by entering cmd in the address bar.

Github桌面应用程序 – 没有要提交的更改,但存在未跟踪的文件。

or

Github桌面应用程序 – 没有要提交的更改,但存在未跟踪的文件。

then add the files to your repository by using the git add command, to add all files use git add . (including the period) and press Enter. This will add all the files in the current directory to the Git repository.

Now that the files have been added to the repository, you can commit them. To do this, type git commit -m "Initial commit" (replacing "Initial commit" with a brief description of the changes you're committing) and press Enter.

Hopefully, this solves what you're facing, else feel free to ask any doubts you may have in the comments, I'll be happy to help.

You can use also use these resources if you're new to git

huangapple
  • 本文由 发表于 2023年3月4日 02:36:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/75630724.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定