Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get history of an individual branch in GIT

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 473
    Comment on it

    If you want to get history of your git repository then you can use simply:

    git log
    

    This will return you all commits.

    If you want to check changes made in a particular commit then you can use:

    git show "SHA-1 key"
    

    SHA-1 is you commit key. When you will use "git log" then it will come after word "Commit" in form of "ef0df940fca4b9e1a22f0efc7c28558155c87e32" this will return all modification in this particular commit.

    "git log" will return history of all branches. If you want to check history of a particular branch then you can use following command:

    git log master..branch1
    

    This will list all commits of branch1.

    For more information about logs you can check Git branches

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: