Adding git-ignore command, tests, and documentation.#239
Closed
tstone2077 wants to merge 1 commit intogit:mastergit/git:masterfrom
Closed
Adding git-ignore command, tests, and documentation.#239tstone2077 wants to merge 1 commit intogit:mastergit/git:masterfrom
tstone2077 wants to merge 1 commit intogit:mastergit/git:masterfrom
Conversation
Author
|
All checks have passed and the repo says pull requests will be ignored, so I'm closing this PR |
7cd4bcb to
0be0d9a
Compare
Contributor
|
Try this: https://submitgit.herokuapp.com/ |
Member
|
@tstone2077 are you still interested in this? If that is the case, please send the patch to the mailing list for review. You can use GitGitGadget, submitGit or send it manually. |
9294960 to
f69d8af
Compare
Author
|
Good call... I added a pull request to gitgitgadget. Amazing that this functionality hasn't made it in 3 years later. Thanks for the push! |
The 'git ignore' command modifies a .gitignore file in your path easily. By default, it adds lines to the .gitignore found in the root of your repository. It can, however, add lines to a gitignore anywhere inbetween the file(s) passed in and the root of the repository. The lines added to the gitignore can be based on filename, extension, directory, or recursive glob. Also, you can easily open the gitignore file using your $EDITOR with 'git ignore --edit'. This can make things much easier when ignore files in subdirectories. No longer will you have to run: echo "path/to/the/file.txt" >../../../../../../.gitignore instead: git ignore file.txt Signed-off-by: Thurston Stone <tstone2077@gmail.com>
Member
Okay, I'll close it here, then. For lurkers: gitgitgadget#264 is where the conversation continues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
git-ignore.sh will allow users to quickly add entries to the gitignore files in the repositories.
Many times, I'll have a config file buried in a series of sub-directories and find it annoying to edit the right git ignore with the right relative path to the file that i want to add. This script makes adding items to a gitignore file as easy as:
git ignore filename.ext
No matter what directory that is in, the correct relative path will be added to the gitignore.