思路:java
先用git status 查找出哪些文件被修改過了,而後 只git commit odin/code/pom.xml git
一、github
$ git status (查看當前更改的代碼)
On branch master
Your branch is up to date with 'origin/master'.服務器
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)code
modified: odin/code/pom.xmlxml
faith@faith_java-PC MINGW64 /d/aa/testcommit/vvv/odin (master)
blog
2.rem
$ git pull (拉取最新代碼)
Already up to date.
faith@faith_java-PC MINGW64 /d/aa/testcommit/vvv/odin (master)it
3.io
$ git commit odin/code/pom.xml -m "test commit" (提交部分代碼加備註)
[master f0e1185] test commit
1 file changed, 1 insertion(+), 1 deletion(-)
faith@faith_java-PC MINGW64 /d/aa/testcommit/vvv/odin (master)
4.
$ git push origin master (推送到遠程服務器)
Counting objects: 5, done.Delta compression using up to 4 threads.Compressing objects: 100% (5/5), done.Writing objects: 100% (5/5), 439 bytes | 439.00 KiB/s, done.Total 5 (delta 3), reused 0 (delta 0)remote: Resolving deltas: 100% (3/3), completed with 3 local objects.To github.com:zhangjq520/zjq_gitlib_code 2bd7ce0..f0e1185 master -> master