1:https://github.com/
注册账户,并创建项目
2:安装git gui
3:运行Git Bash
Welcome to Git (version 1.9.0-preview20140217)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
redmine@REDMINE-PC ~
4:同步项目
redmine@REDMINE-PC ~
$ git clone https://github.com/sohudo/AutoCHM.git
Cloning into 'AutoCHM'...
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.
5:提交更新
cd AutoCHM
进入项目目录
git add .
将改动和新增的文件添加到版本管理器
git commit -m "运行程序"
提交到本地的版本控制库里,并加上本次提交的说明
git push -u origin master
将你本地的仓库提交到你的github账号里,
然后输入你的github的账号和密码
redmine@REDMINE-PC ~
$ cd AutoCHM
redmine@REDMINE-PC ~/AutoCHM (master)
$ git add .
redmine@REDMINE-PC ~/AutoCHM (master)
$ git commit -m "运行程序"
[master 8c8ce0c] 运行程序
7 files changed, 155 insertions(+)
create mode 100644 bin/Auto.ICO
create mode 100644 bin/AutoCHM.Ini
create mode 100644 bin/AutoCHM.exe
create mode 100644 bin/Hha.dll
create mode 100644 bin/Hhc.exe
create mode 100644 bin/Itcc.dll
create mode 100644 bin/Language/ChineseGB2312.ini
redmine@REDMINE-PC ~/AutoCHM (master)
$ git push -u origin master
Username for 'https://github.com': sohudo
Password for 'https://sohudo@github.com':
Counting objects: 10, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 957.16 KiB | 0 bytes/s, done.
Total 9 (delta 0), reused 0 (delta 0)
To https://github.com/sohudo/AutoCHM.git
6821a6b..8c8ce0c master -> master
Branch master set up to track remote branch master from origin.
redmine@REDMINE-PC ~/AutoCHM (master)
$