Git - Basic Operations | Practical explanation

Published: 13 December 2020
on channel: Architecture Flashlight
29
0

Practical explanation

The following is a summary of basic git operations:

git add
Puts current working files into the stage (aka index or cache)

git checkout
Replaces the current working files with files from a branch.

git checkout -b
Creates a new local branch from the current branch's tip.

git clone
Clone an existing repository into a new directory.

git commit
Commits staged changes to a local branch

git commit -a
Commits all modified files to a local branch (shorthand for "git add" followed by "git commit" for each modified file)

git merge
Merges files from a given branch into the current branch.

git pull
Fetches remote changes on the current branch into the local clone, and merges them into the current working files.

git push
Uploads changes from all local branches to the respective remote repositories.


On this page of the site you can watch the video online Git - Basic Operations | Practical explanation with a duration of hours minute second in good quality, which was uploaded by the user Architecture Flashlight 13 December 2020, share the link with friends and acquaintances, this video has already been watched 29 times on youtube and it was liked by 0 viewers. Enjoy your viewing!