Git basic

2018-07-21  本文已影响0人  sszhang

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
上一篇下一篇

猜你喜欢

热点阅读