====================注册安装==========================
1) github网站上注册、用户名、密码、邮箱
2)安装github for windows客户端
=====================done============================
=====================使用 git bash ============================
1) 网站上new 一个 repository, 会要求制定该repo的名字
2) 本地磁盘上建好同名的目录
3)在该目录下 git init
4)在该目录下放好项目文件
5)git add filename
6)git commit -m "logs" ========到目前为止,2-6步都是在本地磁盘上的操作,文件还没add/commit到github网站
7)git remote add origin https://github.com/username/repoName.git========只有第一次提交时需要执行该操作
8)git push origin master
=====================使用git gui=============================
1) 网站上new 一个 repository, 会要求制定该repo的名字
2) 本地磁盘上建好同名的目录
3)在该目录下 git init
4)在该目录下放好项目文件
5)启动git gui, 点击重新扫描, 选中 改动过或者新增的文件, 点击 commit/缓存为提交 (git add);; 或者直接“缓存改动” 提交所有
6)点击提交,填写log信息
7)remote/add, 名字为origin, location为repo.git的https连接地址========只有第一次提交时需要执行该操作
8)git push origin master
======================download到本地 bash方式; gui方式还没弄好======================
1)选择一个github repo
2)点击fork; 会加到自己的repo中
3)git clone https://github.com/username/opencc.git //复制到本地; 但以后的修改只会提交到自己的repo副本中; 如果需要提交到源,还需要如下修改
4)cd repo;
git remote add upstream https://github.com/octocat/Spoon-Knife.git
git fetch upstream
获取最新修改到本地git fetch upstream # Fetches any new changes from the original repository git merge upstream/master # Merges any changes fetched into your working files
git push origin master //提交自己的修改