開發合併分支,推送到遠程
1. git diff 查看修改內容;
2. git add -A 添加全部修改;
3. git commit -am "給人的提示"; 提交修改內容
4. git push origin 你的分支名字;
5. git checkout test;切換到其它分支;
6. git merge --no-ff pri_zk;把你的分支內容合併到當前分支上;
7. git status 查看一下狀態,沒有衝突就push;
8. git push origin test;
我的信息
1. git config --list 查看;
2. git config --global user.name "wdm" 修改提交用戶的名稱;
3. git config --global user.email "wdm@test.com" 修改提交用戶的郵箱
修改遠程地址
1. 查看:git remote -v
2. 修改:git remote set-url origin git@github.com:wdmyong/hello-world.git
3. 刪除:git remote rm origin
4. 添加:git remote add origin 地址