Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of Git Log and Status #18

Open
prkksh opened this issue Apr 21, 2019 · 1 comment
Open

Use of Git Log and Status #18

prkksh opened this issue Apr 21, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@prkksh
Copy link

prkksh commented Apr 21, 2019

Hi,

Great guide! The source material gives a lot more context to this piece. You've covered every aspect on commits, but I think a little bit more emphasize on usage of git log and git status would make a huge difference. Though this is mentioned in the source materials, having this before rebase and merge will provide more clarity.
Adding shortcuts for logs would enable insights to effectively rebase or merge commits as well.
A few shortcuts you could add,
git log --oneline
git log --all
git log --graph
git log --stat
git log -p

@RomuloOliveira RomuloOliveira added the enhancement New feature or request label Apr 22, 2019
@Leopardus4
Copy link

Leopardus4 commented May 18, 2019

Interesting idea. Improved example:
git log --pretty=format:"%h (%Cgreen%an, %Cblue%ad%Creset) %s" --graph --date=short -20

and alias:

git config --global alias.lg "log --pretty=format:"%h (%Cgreen%an, %Cblue%ad%Creset) %s" --graph --date=short -20"
git lg

Output:
obraz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants