Skip to content

Commit 8ee1844

Browse files
author
Mostafa Kamal
committed
git
1 parent 5626f80 commit 8ee1844

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# init
3+
4+
create empty git repository `.git` directory.
5+
6+
```bash
7+
git init
8+
```
9+
10+
* `.git`
11+
* `objects`
12+
* `refs`
13+
* `heads`
14+
* `remotes`
15+
* `tags`
16+
17+
## resources
18+
* [git-scm](https://git-scm.com/docs/git-init)
19+
* [git howto](https://githowto.com/git_internals_git_directory)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# git config
3+
4+
* list
5+
6+
```bash
7+
git config --list
8+
```
9+
# writing
10+
11+
```bash
12+
git config --global user.email "hiremostafa@gmail.com"
13+
```
14+
15+
# get
16+
17+
```bash
18+
git config --get user.name
19+
git config user.name
20+
```
21+
22+
# resources
23+
24+
* [atlassian](https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config)
25+
* [git-scm docs](https://git-scm.com/docs/git-config)
26+
* [git-scm book](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)
27+
* [help github](https://help.github.com/en/github/using-git/setting-your-username-in-git)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# log
2+
3+
* project commit history
4+
5+
```bash
6+
git log --pretty=oneline
7+
```
8+
9+
# resource
10+
11+
* [githowto](https://githowto.com/history)
12+
* [git-scm](https://git-scm.com/docs/git-log)

javascript-developer/extra/git/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
* [github](https://github.github.com/training-kit/)
1212
* [github education](https://education.github.com/git-cheat-sheet-education.pdf)
13+
* [github git help](https://help.github.com/en/github/using-git)
1314
* [git-tower](https://www.git-tower.com/learn/cheat-sheets/git)
1415
* [keycdn](https://www.keycdn.com/blog/git-cheat-sheet)
1516
* [arslanbilal](https://github.com/arslanbilal/git-cheat-sheet)

web-developer/laravel/tips/validation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ $validator = \Validator::make($request->all(), [
2929
//return response()->json(['errors'=>$validator->errors()]);
3030
}
3131
```
32+
33+
$error->has()
34+
$error->all()

0 commit comments

Comments
 (0)