E:\web>git clone https://github.com/findbugGroup/findbug-v0.1.git
Cloning into 'findbug-v0.1'...
remote: Counting objects: 1436, done.
remote: Compressing objects: 100% (1313/1313), done.
remote: Total 1436 (delta 476), reused 0 (delta 0)
Receiving objects: 100% (1436/1436), 3.29 MiB | 190.00 KiB/s, done.
Resolving deltas: 100% (490/490), done.
Checking connectivity... done.
E:\web>git status
fatal: Not a git repository (or any of the parent directories): .git
E:\web>cd findbug-v0.1
E:\web\findbug-v0.1>git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: README.md
no changes added to commit (use "git add" and/or "git commit -a")
3、修改下项目,提交到本地暂存(可能要输入用户名,密码。也可以提前配置)
123456789101112131415161718192021
E:\web\findbug-v0.1>git commit -a -m "test"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'chendd@chendd-PC.(none)')
E:\web\findbug-v0.1>git config --global user.email "mail4chedd@qq.com"
E:\web\findbug-v0.1>git config --global user.name "chendd"
E:\web\findbug-v0.1>git commit -a -m "test"
[master 32a7c94] test
1 file changed, 1 insertion(+)
4、提交到远程服务器上去
12345678910
E:\web\findbug-v0.1>git push origin master
Username for 'https://github.com': chendd
Password for 'https://chendd@github.com':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 284 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To https://github.com/findbugGroup/findbug-v0.1.git
6fd4585..32a7c94 master -> master