Git basic

clone the project

git clone PASTE HTTPS OR SSH HERE

go into/return back the project

cd NAME-OF-PROJECT
cd ..

list the connect

ls
ls *.md

create directory or README.md file,show README.md

mkdir NAME-OF-YOUR-DIRECTORY
touch README.md
nano README.md
#### ADD YOUR INFORMATION
#### Press: control + X
#### Type: Y
#### Press: enter
cat README.md

remove a file, remove a directory and all of its contents

rm NAME-OF-FILE
rm -r NAME-OF-DIRECTORY

view command history

history

show which directory I am in

pwd

clear the shell window

clear

你可能感兴趣的:(Git basic)