nasimakhtar1996
10/8/2017 - 1:39 PM

some useful git command

git init <directory>
(Create empty Git repo in specified directory. Run with no arguments
to initialize the current directory as a git repository.)

git clone <repo>
(Clone repo located at <repo> onto local machine. Original repo can be
located on the local filesystem or on a remote machine via HTTP or SSH .)


git config user.name <name>
(Define author name to be used for all commits in current repo. Devs
commonly use --global flag to set config options for current user.)

git add <directory>
(Stage all changes in <directory> for the next commit.
Replace <directory> with a <file> to change a specific file)

git commit -m "<message>"
(Commit the staged snapshot, but instead of launching a text editor,
use <message> as the commit message.)