Skip to content

Commit 521d569

Browse files
committed
updating notes on gitignoring file configurations
1 parent 10a03ba commit 521d569

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Git-and-Github/alias-in-git-running-multiple-commands-with-alias.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ will create a git alias to do that. It will add the following entry into your gl
2121

2222
```js
2323
[alias];
24-
co = checkout;
24+
co = checkout;f{ git add -A && git commit -m
2525
```
2626
2727
#### git alias setup, so that when I run the following command from my local machine’s feature_branch, it will push to remote repo's branch by the same name (feature_branch)

Git-and-Github/gitignore-file-configuration.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,17 @@ git rm -r --cached .
3636
git add .
3737
git commit -am 'git cache cleared'
3838
git push
39-
```
39+
```
40+
41+
---
42+
43+
### The below is the MOST EFFECTIVE one to ignore a folder at any depth below the current level
44+
45+
The below is the way to ignore all directories called "node_modules" anywhere below the current level in a directory tree
46+
47+
```
48+
node_modules/
49+
```
50+
51+
Source - https://stackoverflow.com/a/1470664/1902852
52+

0 commit comments

Comments
 (0)