Get first line by git log with a single command on windowsIs there an equivalent of 'which' on the Windows command line?Is there a quick Git command to see an old version of a file?Ignoring directories in Git repos on WindowsGit workflow and rebase vs merge questionsHow to have git log show filenames like svn log -vWhere does git config --global get written to?How can I view a git log of just one user's commits?How to get the current branch name in Git?How do I run two commands in one line in Windows CMD?How to git log from all branches for the author at once?
Short story about space worker geeks who zone out by 'listening' to radiation from stars
Term for the "extreme-extension" version of a straw man fallacy?
Is `x >> pure y` equivalent to `liftM (const y) x`
Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?
Two monoidal structures and copowering
Class Action - which options I have?
Why Were Madagascar and New Zealand Discovered So Late?
Do sorcerers' Subtle Spells require a skill check to be unseen?
Is expanding the research of a group into machine learning as a PhD student risky?
Are student evaluations of teaching assistants read by others in the faculty?
How do I find the solutions of the following equation?
Sequence of Tenses: Translating the subjunctive
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
How to write papers efficiently when English isn't my first language?
CREATE opcode: what does it really do?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
How to draw lines on a tikz-cd diagram
How does the UK government determine the size of a mandate?
How can a function with a hole (removable discontinuity) equal a function with no hole?
How do I go from 300 unfinished/half written blog posts, to published posts?
How long to clear the 'suck zone' of a turbofan after start is initiated?
Is there a good way to store credentials outside of a password manager?
Is this apparent Class Action settlement a spam message?
Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?
Get first line by git log with a single command on windows
Is there an equivalent of 'which' on the Windows command line?Is there a quick Git command to see an old version of a file?Ignoring directories in Git repos on WindowsGit workflow and rebase vs merge questionsHow to have git log show filenames like svn log -vWhere does git config --global get written to?How can I view a git log of just one user's commits?How to get the current branch name in Git?How do I run two commands in one line in Windows CMD?How to git log from all branches for the author at once?
Seems to be pretty simple question that drives me crazy already. Trying get the first line from the commit list that I've got by following command:
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123
Getting following output
d8c38ac Dummy change to invoke deploy
aaca9eb (HEAD -> feature/a123, origin/feature/a123) Add transation isolation
Then trying to do
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123 -n 1
and doesn't matter do I use --reverse
or not, I'm always getting aaca9eb
commit
windows git
add a comment |
Seems to be pretty simple question that drives me crazy already. Trying get the first line from the commit list that I've got by following command:
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123
Getting following output
d8c38ac Dummy change to invoke deploy
aaca9eb (HEAD -> feature/a123, origin/feature/a123) Add transation isolation
Then trying to do
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123 -n 1
and doesn't matter do I use --reverse
or not, I'm always getting aaca9eb
commit
windows git
add a comment |
Seems to be pretty simple question that drives me crazy already. Trying get the first line from the commit list that I've got by following command:
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123
Getting following output
d8c38ac Dummy change to invoke deploy
aaca9eb (HEAD -> feature/a123, origin/feature/a123) Add transation isolation
Then trying to do
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123 -n 1
and doesn't matter do I use --reverse
or not, I'm always getting aaca9eb
commit
windows git
Seems to be pretty simple question that drives me crazy already. Trying get the first line from the commit list that I've got by following command:
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123
Getting following output
d8c38ac Dummy change to invoke deploy
aaca9eb (HEAD -> feature/a123, origin/feature/a123) Add transation isolation
Then trying to do
E:Reposreports>git log --oneline --reverse
origin/master..feature/a123 -n 1
and doesn't matter do I use --reverse
or not, I'm always getting aaca9eb
commit
windows git
windows git
edited Mar 22 at 5:45
Dmitrij Kultasev
asked Mar 21 at 15:59
Dmitrij KultasevDmitrij Kultasev
2,81422141
2,81422141
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Yeah, that's frustrating because the limiting of commits by number (-n
) happens before the --reverse
.
Though you can pipe it to a tail :
git log --oneline --reverse origin/master..feature/a123 | tail -1
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284565%2fget-first-line-by-git-log-with-a-single-command-on-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yeah, that's frustrating because the limiting of commits by number (-n
) happens before the --reverse
.
Though you can pipe it to a tail :
git log --oneline --reverse origin/master..feature/a123 | tail -1
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
add a comment |
Yeah, that's frustrating because the limiting of commits by number (-n
) happens before the --reverse
.
Though you can pipe it to a tail :
git log --oneline --reverse origin/master..feature/a123 | tail -1
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
add a comment |
Yeah, that's frustrating because the limiting of commits by number (-n
) happens before the --reverse
.
Though you can pipe it to a tail :
git log --oneline --reverse origin/master..feature/a123 | tail -1
Yeah, that's frustrating because the limiting of commits by number (-n
) happens before the --reverse
.
Though you can pipe it to a tail :
git log --oneline --reverse origin/master..feature/a123 | tail -1
edited Mar 21 at 16:03
answered Mar 21 at 16:02
RomainValeriRomainValeri
4,70721334
4,70721334
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
add a comment |
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
I'm on windows.
– Dmitrij Kultasev
Mar 21 at 16:02
1
1
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
@DmitrijKultasev Yes, I didn't ask but it won't work in Windows cmd. However, you can do that in the git bash terminal of "Git for Windows".
– RomainValeri
Mar 21 at 16:04
1
1
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@DmitrijKultasev Download the "tail" command line tool for windows. windows-commandline.com/tail-command-for-windows
– Mr. Black
Mar 21 at 16:13
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
@Mr.Black Hey, that's very neat. Love it.
– RomainValeri
Mar 21 at 16:23
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
I'll do that in powershell. I just thought that there could be native git command for that.
– Dmitrij Kultasev
Mar 22 at 5:44
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284565%2fget-first-line-by-git-log-with-a-single-command-on-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown