Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Adding git-ignore command, tests, and documentation.#239

Closed
tstone2077 wants to merge 1 commit intogit:mastergit/git:masterfrom
tstone2077:mastertstone2077/git:masterCopy head branch name to clipboard
Closed

Adding git-ignore command, tests, and documentation.#239
tstone2077 wants to merge 1 commit intogit:mastergit/git:masterfrom
tstone2077:mastertstone2077/git:masterCopy head branch name to clipboard

Conversation

@tstone2077
Copy link

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.

@tstone2077
Copy link
Author

All checks have passed and the repo says pull requests will be ignored, so I'm closing this PR

@tstone2077 tstone2077 closed this May 17, 2016
@tstone2077 tstone2077 reopened this May 17, 2016
@tstone2077 tstone2077 force-pushed the master branch 3 times, most recently from 7cd4bcb to 0be0d9a Compare May 19, 2016 05:16
@larsxschneider
Copy link
Contributor

Try this: https://submitgit.herokuapp.com/

@dscho
Copy link
Member

dscho commented Jun 4, 2019

@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.

@tstone2077 tstone2077 force-pushed the master branch 2 times, most recently from 9294960 to f69d8af Compare June 13, 2019 03:44
@tstone2077
Copy link
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>
@dscho
Copy link
Member

dscho commented Jun 13, 2019

I added a pull request to gitgitgadget.

Okay, I'll close it here, then. For lurkers: gitgitgadget#264 is where the conversation continues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.