Thursday, September 1, 2016

Git go to any moment (commit) in time

Get this straight you are accessing repo thats already setup and has commits branches etc in it


Here's how you go to any period of commit in a repo status
Git repo url :  https://github.com/thatsmekaustubh/appengine.git
You start by cloning it in your working directory

git clone https://github.com/thatsmekaustubh/appengine.git 004appengine


To know all commits you can find it using this command

git log


To know all branches you can find it using this command

git show-branch -a


This shall give a picture of all flows of development
this in present moment of time is

start__masterBranch
      |__experimentsBranch

Commits were

  • false commit (hello world example)
  • Hello world example with commmand to run
  • Users API example 
The command shows
git log
all commit id's
You can switch between branches as
git checkout <branchname>

And go to particular commit by saying 

git checkout <commitid>

No comments:

Post a Comment

Quick setup Phonegap Development Environment using Docker

INTRO NOTE : Pre-requisite is to have ubuntu 16.04 Following DIGITAL OCEAN tutorial for same...