gitignore
bfg-repo-cleaner
Our great sponsors
gitignore | bfg-repo-cleaner | |
---|---|---|
285 | 53 | |
156,762 | 10,576 | |
1.0% | - | |
0.0 | 3.2 | |
3 days ago | 4 months ago | |
Scala | ||
Creative Commons Zero v1.0 Universal | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gitignore
-
Release 0.12.0 of stevedore - minor feature enhancement
The challenge here was actually from my #48in28 Exercism participation, where I am pretty familiar the standard layout for some repositories since I am familiar with tooling and language, working with new languages does not come with the same familiarity, so I found it made sense to use canonical definitions, hence the use of github/gitignore.
-
How to Use Environment Variables in Node.js
Add .env to your .gitignore file to prevent it from being committed. Here's an example file with it already added. You may also use dotenv for advanced configuration and it will automatically load environment variables from a .env file into process.env.
-
Basic Python Project Layout
Virtual Environments are a feature that has been part of python itself since version 3.3. It allows you to isolate both a python version and any packages you install with it. Every python project I develop with uses a virtual environment for such isolation purposes. Now I generally like to create these virtual environments inside the target project's directory so I know exactly what it's tied to. If you use GitHub's python gitignore file naming the virtual environment folder as venv or .venv will ensure it doesn't get committed (which you don't want). So I'll make a new project folder and create a virtual environment inside of it:
-
Node.js 20.6.0 will include built-in support for .env files
Especially considering the GitHub .gitignore template for Node only ignores .env.local, not .local.env: https://github.com/github/gitignore/blob/main/Node.gitignore...
-
GitHub Repo Feedback [intermediate / advance]
Starting with the top-level .gitignore, it's nearly empty. I'd recommend defaulting to something like this if you don't have any specific needs.
- Old ASP.NET/.NET Framework 3.5 gitignore question: Which files/folders should be gitignored?
-
Please, please, PLEASE use source control! (Plus, the only git commands I ever use)
There are .gitignores for almost every type of project (Unity included) here: https://github.com/github/gitignore
- Best Practices for MATLAB Toolbox Development is published!
-
PSA: Use version control and take backups!
Make sure your .gitignore file is properly set up (and .gitattributes): https://github.com/github/gitignore/blob/main/Unity.gitignore
-
Questions for my team
So first - here's an intuitive guide on what Git even does and how. Afterwards you can install one of various Git guis, for instance Github Desktop so you don't have to learn the syntax yet. One important thing about Unity projects is to also add a correct .gitignore file to the base directory of a project, else you wil lend up with a LOT of noise. Here's a good starting point. I also have to point out that Github actually has repository size limitations which are hard to reach with code but are easy to reach with assets. Realistically speaking though, this is what should cover 99% of Git needs you will have:
bfg-repo-cleaner
-
(RE not sharing inputs) PSA: "deleting" and committing to git doesn't actually remove it
So, this is a PSA that you can't simply delete the file and commit that. You must either use a tool like BFG Repo Cleaner which can scrub files out of your commit history or you could simply delete your repository and recreate it (easier, but you lose your commit history).
- What is in that .git directory?
-
someThingsAreForever
You need to git out the BFG: https://rtyley.github.io/bfg-repo-cleaner/
-
Nintendo sends Valve DMCA notice to block Steam release of Wii emulator Dolphin
You could use a repo filtering tool (e.g. BFG Repo-Cleaner) to clean up unintended information leak from your Git repository -- which retains the history timeline, but I believe it would rehash all the commits and render everything unsigned, which is probably not the desired outcome.
- How to Push Files Over 100MB to GitHub: A Step-by-Step Guide with Git Large File Storage (LFS)
-
Large initial push.
I personally prefer git-bfg ( https://rtyley.github.io/bfg-repo-cleaner/ ) ... though git-filter-repo ( https://github.com/newren/git-filter-repo ) is quite popular. The difference for me was that git-bfg is JVM based and my work machine has Java on it while git-filter-repo is python based... and my work machine is without python.
-
Show HN: Yesterday I open sourced StratusGFX, a realtime 3D rendering engine
https://rtyley.github.io/bfg-repo-cleaner/ (Java) seems to be the favored tool; there's also https://github.com/xoofx/git-rocket-filter (.NET) and the built-in commands: https://stackoverflow.com/questions/2100907/how-to-remove-de...
You'll have to unprotect the branch to force push to GitHub, and anyone who has already cloned the repo may not appreciate basically having to start over, so better to get it over with ASAP!
-
I lost everything
Put your assets in a seperate repo and set it up as a git submodule in your main repo. When the repo gets too large from tons of commits, back it up and use https://rtyley.github.io/bfg-repo-cleaner/ to nuke the commit history.
-
TIFU by using funny naming conventions in my code.
So now you get to learn about git-filter-branch and maybe fire the BFG
-
What should I do if I accidentally uploaded sensitive information to GitHub?
Just try this THIS then you can force push
What are some alternatives?
terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.
git-lfs - Git extension for versioning large files
git-filter-repo - Quickly rewrite git repository history (filter-branch replacement)
gitlab
parcel - The zero configuration build tool for the web. 📦🚀
gitignore.plugin.zsh - ZSH plugin for creating .gitignore files.
github-cheat-sheet - A list of cool features of Git and GitHub.
git-secret - :busts_in_silhouette: A bash-tool to store your private data inside a git repository.
pdoc - API Documentation for Python Projects
Hapi - The Simple, Secure Framework Developers Trust
awesome-python - An opinionated list of awesome Python frameworks, libraries, software and resources.