【原】git常见用法

1、克隆

当前用户:git clone 192.165.53.15:/home/git/repo/Tegra/bsp/tx1_filesystem.git/

非当前用户:git clone xxxxxx@192.165.53.15:/home/git/repo/Tegra/bsp/tx1_filesystem.git/

2、上传

git status // 查看差异
git add sys/aarch64-linux-gnu/   //添加新添加的文件
git config --global user.email "xxxxxxx@dvt.dvt.com"  //配置用户邮箱,仅第一次填写
git config --global user.name "xxxxxx"    //配置用户,仅第一次填写
git commit -m "添加算法库"    //上传本地,并添加说明
git push 

原文地址:https://www.cnblogs.com/eleclsc/p/10769201.html