File tree Expand file tree Collapse file tree 5 files changed +62
-0
lines changed
web-developer/laravel/tips Expand file tree Collapse file tree 5 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments