Git-从代码提交到bitbucket

1.bitbucket

1.1创建用户

1.2创建项目

1.3添加权限

 

2.Git

2.1创建账户

#git config --global user.name "admin"

#git conflig --global user.email "admin@email"

2.2添加文件

#git add file

#git commit -m "初始提交“

#git remote add origin http://admin@IP:7990/scm/gds/gds.git

#git push -u origin master

2.3如果代码库已存在

#git remote set-url origin http://admin@IP:7990/gds/gds.git

#git push -u origin master

 

你可能感兴趣的:(Git-从代码提交到bitbucket)