git command

clone

git clone [email protected]:marine0131/reposity_name

push

1.git add -A
2.git commit -m 'something want to say'
3.git push origin master

pull

1.git pull origin master

if local version have changed, commit have be done first
这个操作将抛弃本地版本,需要谨慎

1.git checkout .   //注意checkout 后空格 加 “ . ”
2.git pull origin master

单独撤销一个文件的本地修改

git checkout -- file2
 ```
##check

git status

你可能感兴趣的:(git command)