git installation and use under linux

The installation and use git
yum install git - mounting git
the useradd git - git increase user
passwd git - git user password set
SU -git
mkdir repos - Create a root git
cd repos - Switch to repos directory
ls - list list directory entries
mkdir app.git - create a directory app.git first project
cd app.git - to switch to the directory app.git
LS
git --bare the init - initialize the first source code repository
git clone [email protected]: /home/git/repos/app.git - got me to remote code
git add - add a label to submit local repository
git commit -m "comment" - submitted to the
git push origin master - merge commit to

Guess you like

Origin www.cnblogs.com/lijinchang/p/12072643.html