Git 提交代码 简单步骤
vim .git/config 内容。
[core]
repositoryformatversion = 0
filemode = true
[user] // 这里要与服务器一致
name = nyang
email = nyang@neolink.com.cn
[remote "tshark"]
url = http://10.0.0.234/platform/packages/apps/SoundRecorder.git
review = http://10.0.0.234:8080
projectname = platform/packages/apps/SoundRecorder
fetch = +refs/heads/*:refs/remotes/tshark/*
[branch "new_SoundRecorder"]
remote = tshark
merge = refs/heads/tshark_dev2
创建分支:git checkout -b new_SoundRecorder tshark/tshark_dev2
添加:git add -A
提交本地:git commit
上传服务器:repo upload