Skip to content

Commit 3294d40

Browse files
committed
updating git alias notes
1 parent 0d6fcd0 commit 3294d40

2 files changed

+6
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Now in `~/.gitconfig` file add the below
4242

4343
```js
4444
[alias];
45-
c = '!f(){ git add . && git commit -m "$1"; git push; };f';
45+
c = "!f(){ git add -A && git commit -m \"$1\"; git push; };f"
4646
```
4747

4848
Now when you run `git c 'some message'` from **current_branch_i_am_in** it will actually run under the hood the following commands sequentially.

Git-and-Github/clear-a-git-repository-s-cache-after-changing-gitignore.md

+5
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ git add .
1010
git commit -am 'git cache cleared'
1111
git push
1212
```
13+
14+
15+
```
16+
git rm -r --cached . && git add . && git commit -am 'git cache cleared' && git push
17+
```

0 commit comments

Comments
 (0)