-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
How do I know the last commit time and message? #334
Comments
When you pull in Obsidian, you should get a notice of the changed files count. This could help you to determine whether you have new changes or not. But this does not tell you the date of the last commit. |
@Vinzent03 |
Finally, I find a way to do this by using plugins Templater and Hotkeys for templates.
name: gitlog
cmd: git log --pretty=format:'%s' -5
<%_*
const msgs = await tp.user.gitlog()
const array = msgs.split("\n")
//show a model listing latest commits
await tp.system.suggester(array,array)
//to avoid lost data
tR += tp.file.selection();
_%>
|
That's great! I'm still thinking about a good way to maybe show that in Obsidian as well. Maybe another statusbar entry? |
Maybe just "git log" in Obsidian Git like in this feature request? For those who still looking for solution (and don't want to use Templater for some reasons), you can use plugins Shell Command + Commander and put icon with your command for example |
Every morning at the office , I need to check the last commit time to confirm I haven't forgotten to commit and push at home last night.
I have to open a terminal and type "git log". How can I do it within obsidian?
The text was updated successfully, but these errors were encountered: