-
Notifications
You must be signed in to change notification settings - Fork 0
/
command
63 lines (35 loc) · 1.09 KB
/
command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;
db.articles.updateMany({}, { $set: {"flag": true} })
7401573336
6603935673
ssh -i "qunagminh-58.pem" [email protected]
docker-compose.yml -> dockerfile
dockerfile đại khái là khai báo 1 file sử dụng service của OS hay là Env, dĩ nhiên trên đó sẽ có các lệnh
//git flow
** switch branch tu develop
git checkout -b feature/ten/tenchucnang
** su dung rebase de update
git commit --amend
git checkout develop
git pull
git checkout feature/ten/tenchucnang
git rebase origin develop
** gop commit
git rebase -i HEAD~(so commit)
ko sua cai dau tien
cac cai sau chuyen pick -> s
** commit lien tiep
git commit --amend
** push lien tiep
git push -f
docker run -v /abc:/abc -p 80:80 -it ubuntu /bin/bash
** bo commit 1 file
git checkout -- <tenfile>
git rm --cache api/controllers/ContactController.js
##Migration##
php artisan migrate
php artisan make:migration add_votes_to_users_table --table=users
##Auth##
php artisan make:auth
Eloquent
Model