gitlib命令的使用

查看分支:git branch

创建分支(本地创建分支同步远程服务端):git push origin 本地分支名字:远程分支名字

删除远程分支: git push origin :dbg_lichen_star

设置用户名邮箱:
git config --global user.name "用户名"
git config --global user.email "邮箱地址"

命令推送到gitlib

git init

git remote add origin 项目地址( http://10.0.0.1:8080/xxx/my-project.git)

git add .

git commit -m "Initial commit"

git push -u origin master(要push的分支,可以为其他分支)

猜你喜欢

转载自www.cnblogs.com/zhangxiaan/p/10167460.html