简体   繁体   English

Git 中的版本控制 - Bitbucket

[英]Version Control in Git - Bitbucket

I've used other version control applications before whilst developing SSIS packages yet I'm working on an API and nodejs application at present and considering using bitbucket.我之前在开发 SSIS 包时使用过其他版本控制应用程序,但我目前正在开发 API 和 nodejs 应用程序并考虑使用 bitbucket。

I had a look at it today and created a repository and started with some files.我今天查看了它并创建了一个存储库并从一些文件开始。

My question is around the application I've onboarded it has a large Visual Studio solution for the API yet I can't see how I'd get that onto bitbucket as a master.我的问题是关于我已经加入的应用程序,它有一个用于 API 的大型 Visual Studio 解决方案,但我不知道如何将它作为 master 放到 bitbucket 上。 Returned 413 errors and I suspect it's due to the size about 1GB.返回 413 错误,我怀疑是由于大小约为 1GB。

My understanding of version control in the past scenario was that it would take all files so the entire application can be tracked.在过去的场景中,我对版本控制的理解是它会获取所有文件,以便可以跟踪整个应用程序。

Might be missing something… not sure?可能遗漏了什么……不确定?

Have you considered using gitignore file.您是否考虑过使用gitignore文件。 You can setup git to ignore some files in your repo.您可以设置 git 以忽略存储库中的某些文件。 Usually people do not include dependencies (like node modules) or generated binaries in the repo because they can get quite large and can be easily downloaded.通常人们不会在 repo 中包含依赖项(如节点模块)或生成的二进制文件,因为它们会变得非常大并且可以轻松下载。

You can use website like gitignore.io to generate the file for you based on the project type.您可以使用gitignore.io网站根据项目类型为您生成文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM