more link updates
This commit is contained in:
@@ -214,10 +214,10 @@ There are a few simple tricks to avoid committing things you don't want committe
|
||||
* Avoid the catch-all commands `git add .` and `git commit -a` on the command line—use `git add filename` and `git rm filename` to individually stage files, instead.
|
||||
* Use `git add --interactive` to individually review and stage changes within each file.
|
||||
* Use `git diff --cached` to review the changes that you have staged for commit. This is the exact diff that `git commit` will produce as long as you don't use the `-a` flag.
|
||||
* Enable push protection for your repository to detect and prevent pushes which contain hardcoded secrets from being committed to your codebase. For more information, see "[AUTOTITLE](/code-security/secret-scanning/push-protection-for-repositories-and-organizations#about-push-protection-for-repositories-and-organizations)."
|
||||
* Enable push protection for your repository to detect and prevent pushes which contain hardcoded secrets from being committed to your codebase. For more information, see "[AUTOTITLE](/code-security/secret-scanning/introduction/about-push-protection)."
|
||||
|
||||
## Further reading
|
||||
|
||||
* [`git filter-repo` man page](https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html)
|
||||
* [Pro Git: Git Tools - Rewriting History](https://git-scm.com/book/en/Git-Tools-Rewriting-History)
|
||||
* "[AUTOTITLE](/code-security/secret-scanning/about-secret-scanning)"
|
||||
* "[AUTOTITLE](/code-security/secret-scanning/introduction/about-secret-scanning)"
|
||||
|
||||
Reference in New Issue
Block a user