安装:
sudo apt-get install git 就行了,它会自动安装
从Github上下载项目: git clone 项目的url
上传到Github(git status查看状态):
我新增一个hello文件,之后,
1、git add hello
2、git commit
如果出现什么git config --global.....
那么需要设置: git config user.email "我的邮箱(注册github时的邮箱)"
git cnofig user.name "名称"
之后要提交: git commit -m "提交的信息"
3、git push
之后会提示输入github上注册时使用的用户名和密码,输入完之后会提交到github,如下图所示:
之后去你的github上刷新一下,就会发现变化了。
(adsbygoogle = window.adsbygoogle || []).push({});