Saravana's Musings
Showing posts with label
git
.
Show all posts
Showing posts with label
git
.
Show all posts
Wednesday, August 21, 2019
git push - set current branch only
Set only the current working branch to be pushed:
git config --global push.default simple
Friday, March 22, 2019
How a function changed from beginning - git trick
Come across this nice git trick to know how a function evolved:
git log -L :<Function_name>:<Filename>
So, it start with the first edition of the function followed by all changes done within the function.
Tuesday, February 16, 2016
git show commit
// show the first two patches in git branch
git show HEAD -2
// show the top one
git show HEAD
equivalent to
git show HEAD -1
Older Posts
Home
Subscribe to:
Posts (Atom)