development:system:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:system:git [2024/08/12 14:27] – [Git Rebase & Git Merge] tungnt | development:system:git [2024/08/15 09:03] (current) – tungnt | ||
---|---|---|---|
Line 51: | Line 51: | ||
Identity added: / | Identity added: / | ||
$ ssh-add -l | $ ssh-add -l | ||
- | 4096 SHA256:HntA0FUgaD0ELTaHSU/ | + | 4096 SHA256:HntA0FUgaD0***EjnP6aXyCvM |
- | 4096 SHA256:2cJDMSnLCJPnd6K4cIdjmI58FwJ/ | + | 4096 SHA256:2cJDMSnLCJP***Wrml4S8ulHw |
</ | </ | ||
Line 62: | Line 62: | ||
| | ||
ssh-add / | ssh-add / | ||
- | ssh-add / | ||
ssh-add / | ssh-add / | ||
Line 560: | Line 559: | ||
* git merge: khi xem log các commit sẽ được sắp xếp theo thời gian commit, dùng khi dự án ít người cùng làm. | * git merge: khi xem log các commit sẽ được sắp xếp theo thời gian commit, dùng khi dự án ít người cùng làm. | ||
* git rebase: khi xem log các commit sẽ không sắp xếp theo thời gian commit như git merge, mà sẽ ưu tiên commit của cá nhân lên đầu. Nên sử dụng khi dự án có nhiều người cùng làm. | * git rebase: khi xem log các commit sẽ không sắp xếp theo thời gian commit như git merge, mà sẽ ưu tiên commit của cá nhân lên đầu. Nên sử dụng khi dự án có nhiều người cùng làm. | ||
+ | |||
+ | ====== Git Log ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | <code bash> | ||
+ | % git log --oneline | ||
+ | |||
+ | % git log -- filename modules/ | ||
+ | % git log -p -- filename modules/ | ||
+ | |||
+ | tungnt@MacBook-Pro-cua-Nguyen-2 api.9s.vn % git log --pretty=format:" | ||
+ | 56e4d7fe03 - tungnt.blue@gmail.com, | ||
+ | b668bd133d - tungnt.blue@gmail.com, | ||
+ | 54327213ec - tungnt.blue@gmail.com, | ||
+ | 50db75fa85 - tungnt.blue@gmail.com, | ||
+ | ae02e78fb4 - tungnt.blue@gmail.com, | ||
+ | eaae3faa6f - tungnt.blue@gmail.com, | ||
+ | 7656495fc8 - tungnt.blue@gmail.com, | ||
+ | b0ffc56c41 - tungnt.blue@gmail.com, | ||
+ | 1958516401 - tungnt.blue@gmail.com, | ||
+ | 6ecef6fb81 - tungnt.blue@gmail.com, | ||
+ | cd02aafff4 - tungnt.blue@gmail.com, | ||
+ | 2dcbc9cdb7 - tungnt.blue@gmail.com, | ||
+ | 7dae86672a - tungnt.blue@gmail.com, | ||
+ | 7974263273 - tungnt.blue@gmail.com, | ||
+ | |||
+ | tungnt@MacBook-Pro-cua-Nguyen-2 api.9s.vn % git show 54327213ec | ||
+ | commit 54327213ec68b3e8e75194653a60bb95f9f09e5a | ||
+ | Author: tungnt < | ||
+ | Date: Tue Mar 12 16:44:03 2024 +0700 | ||
+ | |||
+ | Test TCB | ||
+ | |||
+ | diff --git a/ | ||
+ | index 9b98620801..1bbac43c4c 100644 | ||
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -47,11 +47,11 @@ class ExampleController extends BaseController | ||
+ | |||
+ | | ||
+ | |||
+ | - $sign1 = $this-> | ||
+ | - $sign2 = $this-> | ||
+ | + $sign1 = $this-> | ||
+ | + $sign2 = $this-> | ||
+ | |||
+ | - $verify1 = $this-> | ||
+ | - $verify2 = $this-> | ||
+ | + $verify1 = $this-> | ||
+ | + $verify2 = $this-> | ||
+ | |||
+ | | ||
+ | } | ||
+ | </ | ||
====== Một số lỗi có thể gặp ====== | ====== Một số lỗi có thể gặp ====== |
development/system/git.1723472850.txt.gz · Last modified: 2024/08/12 14:27 by tungnt