I am new to git so can you elaborate what are the good practices.

On 4 May 2020 4:40 p.m., "Philip Oakley" <philipoakley@iee.email> wrote:

Hi Kunal


On Monday, May 4, 2020 at 11:10:44 AM UTC+1, Kunal Chauhan wrote:
>
> Hi Team,
>
> 1. I want to check all the changed file in git with date time and some
> color coding that can help be to check easily
>

Lots of options and possibilities.Hopefully you are already using good
practice of lots of small changes for easy review and testing. This means
that deciding where to look in the sequence of commits becomes a proper
choice.

You can use `git blame` to show who changed which line on which commit. You
can limit the blame to a small range of commits, or commits `since` a time
point, and use `-b` to not show the older commits for unchanged lines.

You can use `git diff` to see the totality of changes between two commits,
either start-end or intermediate point to other point.  It usually has
colour (if enabled). `Git show` will list all the commits and their diffs -
use the range and `since` options to avoid overload.



> 2. I want to check the my branch where it has been created and logs on ti
>

`Git log` with the 'two dot' range will show everything on one branch,
since it was forked from another e.g. `master..mybranch`

Also have a look at gitk to visualise the branch structure. (other tools
are available)



-- 
You received this message because you are subscribed to the Google Groups
"Git for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/git-users/89fff836-d070-4ebc-a418-5c0dc3e4af67%40googlegroups.com
<https://groups.google.com/d/msgid/git-users/89fff836-d070-4ebc-a418-5c0dc3e4af67%40googlegroups.com?utm_medium=email&utm_source=footer>
.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CACEFAc3eYYu%3DbhBoYQxY_%2Bcn8O%3DCHiFDZOWW22%2BuoCPs%3DmiRBA%40mail.gmail.com.

Reply via email to