Title: Preparing the project for Git · Issue #2 · ddrex/github-upload · GitHub
Open Graph Title: Preparing the project for Git · Issue #2 · ddrex/github-upload
X Title: Preparing the project for Git · Issue #2 · ddrex/github-upload
Description: Step 2: Prepare the project Working with Binary files In general, there are two types of files: text files and binary files. Text files, like most code files, are easily tracked with Git and are very lightweight. However, binary files li...
Open Graph Description: Step 2: Prepare the project Working with Binary files In general, there are two types of files: text files and binary files. Text files, like most code files, are easily tracked with Git and are ve...
X Description: Step 2: Prepare the project Working with Binary files In general, there are two types of files: text files and binary files. Text files, like most code files, are easily tracked with Git and are ve...
Opengraph URL: https://github.com/ddrex/github-upload/issues/2
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preparing the project for Git","articleBody":"## Step 2: Prepare the project\n\n### Working with Binary files\n\nIn general, there are two types of files: text files and binary files.\n\nText files, like most code files, are easily tracked with Git and are very lightweight.\n\nHowever, binary files like spreadsheets, presentations with slides, and videos don't work well with Git. If your repository already has some of these files, it's best to have a plan in place before you enable Git version control.\n\nYou could choose to remove the binary files, or use another tool like [git-lfs](https://git-lfs.github.com/) (Git Large File Storage). We won't get into detail on how to set up git-lfs in this course, but we will talk about `.gitignore` files next, which are key to protecting your code from becoming bloated with binaries.\n\n### Add a `.gitignore`\n\nAs we convert your project to a Git repository, it should only include the source code necessary to build or compile your project. In addition to avoiding binaries as we discussed above, you will also want to keep build artifacts out of your version controlled code. \n\nTo do this, you will create a file in your current project named `.gitignore`. Git will use the `.gitignore` to determine which files and directories should not be tracked under version control. The [`.gitignore` file](https://help.github.com/articles/ignoring-files/) is stored in your repository in order to share the ignore rules with any other users that interact with the repository. \n\nSince the files to be ignored are dependent on the language you are using, the open source community has contributed some great templates for `.gitignore` files in the [`github/gitignore`](https://github.com/github/gitignore) repository.\n\n### :keyboard: Activity: Prepare your repository\n\n1. Remove any binary files from your repository.\n2. In your local environment, [create a `.gitignore` file](https://help.github.com/articles/ignoring-files/). You can use a [template](https://github.com/github/gitignore) or create your own.\n\n> When you are finished, close this issue. I will open a new issue with the next steps. :tada:\n\n\u003chr>\n\u003ch3 align=\"center\">Watch below for my response\u003c/h3>\n\n> :robot: I'm waiting for you to close this issue before moving on.\n","author":{"url":"https://github.com/apps/github-learning-lab","@type":"Person","name":"github-learning-lab"},"datePublished":"2021-02-16T17:07:05Z","url":"https://github.com/ddrex/github-upload/issues/2"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:16a1b850-3b5d-faf6-4487-22ffb146bdc6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB50:2AD05:101D0:13E8F:6B08B69A |
| html-safe-nonce | aba2830d40b10b3fc6df6726e9f497bebc9dc8a8c7e64283bdaa024bfe3f5b8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjUwOjJBRDA1OjEwMUQwOjEzRThGOjZCMDhCNjlBIiwidmlzaXRvcl9pZCI6IjQ5MDA4Mjc2NTUyOTEwNTc4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6055df7eec03859946e7f7357cf944ea69106faa6f3a715206a35693c976ceeb |
| hovercard-subject-tag | issue:809490109 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ddrex/github-upload/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d45300585a001f0b48ea1e852bcf68c4fd72946e056993fbc3133d96158c42b/ddrex/github-upload/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d45300585a001f0b48ea1e852bcf68c4fd72946e056993fbc3133d96158c42b/ddrex/github-upload/issues/2 |
| og:image:alt | Step 2: Prepare the project Working with Binary files In general, there are two types of files: text files and binary files. Text files, like most code files, are easily tracked with Git and are ve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | github-learning-lab[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60e86161f3e246339ce8d4bd308e3da0ecd5ebd5e610d57e00d21487fe085d68 |
| turbo-cache-control | no-preview |
| go-import | github.com/ddrex/github-upload git https://github.com/ddrex/github-upload.git |
| octolytics-dimension-user_id | 44214161 |
| octolytics-dimension-user_login | ddrex |
| octolytics-dimension-repository_id | 339467994 |
| octolytics-dimension-repository_nwo | ddrex/github-upload |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 339467994 |
| octolytics-dimension-repository_network_root_nwo | ddrex/github-upload |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e87e2b0f8aff9e45b7ac6c81be5a939ad971830c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width