November 2017
Beginner
238 pages
5h 58m
English
Create a new folder on your disk to clone our grocery repository:
[1] ~ $ mkdir grocery-cloned
Then clone the grocery repository using the git clone command:
[2] ~ $ cd grocery-cloned [3] ~/grocery-cloned $ git clone ~/grocery . Cloning into '.'...
Done.
The dot . argument at the end of the command means clone the repository in the current folder, while the ~/grocery argument is actually the path where Git has to look for the repository.
Now, go directly to the point with a git log command:
[4] ~/grocery-cloned (master) $ git log --oneline --graph --decorate --all * 6409527 (HEAD -> master, origin/master, origin/HEAD) Add a grape * 603b9d1 Add a peach | * a8c6219 (origin/melons) Add a watermelon | * ef6c382 (origin/berries) ...
Read now
Unlock full access